Support ⇒ Dragonfly CMS v10 ⇒ Template variables order ⇒ Community Forums ⇒ CPG Dragonfly™ CMS
Forum IndexDragonfly CMS v10

Template variables order Reply to topic


I 'm trying to show a variable (PAGE_HEADER) into a template. This is a special variable that it's like expression into 'includes\poodle\tpl\tales.php - line 134'.

I would like that template uses a defined variable if it exists and then the tales expression. Is it possible? I thinks that it's better process to use this variable.

until the next (Bye),

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Dragonfly 9.2 (PHP5.4)


See the TALES expressions documentation at dragonflycms.org/Wiki/...html#tales
There the pipe (or) character is explained and PHP.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Fedora 25 / Apache 2.4.27 / MariaDB 10.1.26 / PHP 7.1.10 / Mercurial

Last edited by DJ Maze on Sat Aug 04, 2018 11:31 pm; edited 1 time in total


I have tried to modify the value of the variable PAGE_HEADER so as not to repeat texts on the page and when I modify it in the file page_header.php to put another title, it continues to load the values of the title of the page.

In the files includes/poodle/tpl/tales.php and includes/dragonfly/tpl/v9parser.php the variable PAGE_HEADER is referred to, as if it had a special treatment. Is there any way to modify this so that the treatment is special in case the variable has not been defined elsewhere?

I hope you understand the idea I'm asking because I don't have a very good English.

until the next (Bye),

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Dragonfly 9.2 (PHP5.4)


Sorry, I don't understand it. Can you show some examples?

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Fedora 25 / Apache 2.4.27 / MariaDB 10.1.26 / PHP 7.1.10 / Mercurial


Example: I would like to have diferent text into pagetitle and into first line of page like image.
Attachment: Ejemplo.png
Description
Filesize 45.23 KiB
Viewed 3 Time(s)
You are not allowed to view/download this attachment

until the next (Bye),

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Dragonfly 9.2 (PHP5.4)

All times are UTC


Jump to: