__page_*__ What does it mean

There is __page_number__ ,__page_mode__,__page_header__ and so on in templates.Some of them I can understand,but most of the other I don't understand. There is documentation about it?

And I want to find a  "__page_?__ " that mean the current page url.

Thanks!

Quote · 7 Mar 2013

Hello

Yes, you may find constructions like __[some text]__ in HTML template files. They are template keys which are parsed with PHP code during building of a page. Each page has its own template keys and they are available and will be parsed on this exact page only.

But there is a number of global template keys like <bx_url_root />, <bx_text:_language_key />, etc and key listed in parseSystemKey method of BxDolTemplate class. You may find all of them in inc/classes/BxDolTemplate.php file. However there is no a key for current page URL.

Best Regards AntonLV - http://www.boonex.com/market/posts/AntonLV
Quote · 7 Mar 2013

Thanks!

Quote · 8 Mar 2013

Where is the code for this located, I can't seem to find it in BxDolTemplate.php<bx_injection:injection_logo_before />

 

http://ModMyCMS.com --> Dolphin Hacks &Mods
Quote · 8 Mar 2013

It's in there. Your most likely looking for a specific name. Which is not how it's coded.

Injections are located in the function function _parseContent which then passes it to the function processInjection

The actual injection itself i located in the database in the table sys_injections or sys_injections_admin

Of course i don't really understand why you would want to know where it's located. Because your not going to want to change the way that function works as doing so would most likely break all of dolphins injections. Instead you need learn what they are for and how to use them.

And dolphin is not the only thing that uses those injections. Modules do as well. Including many 3'rd party modules which you could also break if you try messing with that code.







https://www.deanbassett.com
Quote · 8 Mar 2013

Well Deano, because I want to replace the default search box on the main page with a language translation bar. Thanks for the DB location, works great

http://ModMyCMS.com --> Dolphin Hacks &Mods
Quote · 8 Mar 2013

There is a really nice Head Injection module in the market.

Geeks, making the world a better place
Quote · 8 Mar 2013
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.