I have one problem. I understand template and change everything fine. But when i change sth in general templates (not in layouts/xxx/templates), ex. header or body, gallery crash.
Valiant said that i must set flush template. Can u tell me what exacly i must do to make flush template?
I only want put banner rotation in right top corner.
And i cant integrate this files:
# images/galleryLogo_sm.gif
# modules/rearrange/RearrangeItems.inc
# modules/rearrange/module.inc
# modules/rearrange/po/strings.raw
# modules/rearrange/templates/Header.tpl
# modules/rearrange/templates/RearrangeItems.tpl
# ...es/rearrange/test/phpunit/RearrangeItemsControllerTest.class
. In earlier versions this problem not appear.
Posts: 32509
what do you mean with "
And i cant integrate this files: ". do you mean that you receive modified/missing files warning?
and what template files do you actually edit? the ones in /templates/? (global.tpl,...)
i guess you know that you should edit files in /templates/local/ and not in /templates/.
also, you can flush the templates cache in site admin -> maintenance
or in /yourgalleryurl/lib/tools/test/
Posts: 72
Ok. I did that. I edited layouts/matrix/templates, cause if i edit templates/global gallery crash (of course in local).
I add only one ex. "a" and gallery not run.
When i upgrading gallery i have in i think step 3 "integrity files"
I upload it one more time and everything fine. But in this version i overwrite ^^ files and still see integrity bad.
Posts: 32509
you'll have to post the changes you apply.
and what is the error you get?
Posts: 72
But doesnt matter what i change. In any template i have a error. I cant paste it now cause site is running and i dont want make errors but i pasted in older posts.
Please, you must understand me in layouts i can change everything and everything works fine.
But when i change sth in templates in main g2 dir ,gallery crash.
btw. I need to put this banner and change <body> (keywords). And the same problem ^^.
Posts: 32509
then i can't help you. i don't know what you changed exactly and i don't see the error.
Posts: 72
This is an example of error:
Fatal error: Smarty error: [in gallery:templates/global.tpl line 42]: syntax error: invalid attribute name: 'none" width="80" height="15' (Smarty_Compiler.class.php, line 1516) in /home/tuninibd/www.tuning4u.info/lib/smarty/Smarty.class.php on line 1088
I try to add sth, ex target="_blank" to gallery2 url in body.
I try to add any {g->text text="a"} (i dont know is this good )
or add keywords to <head></head>
??
Posts: 32509
you can't just add anything in the {} tags. these are smarty tags.
you are free to add any html around the {} tags, but if you want to edit the stuff in the {} tags or add additional smarty tags, you should know what you are doing.
@ _blank: someone else did this already. can't remember in which forum thread. please try your luck with the forum search function.
Posts: 72
What with keywords ?
Posts: 32509
if you put it at the right place, it should work. but given that i haven't seen your customization and that the other "small change" was not that small, i'd have to see it before i can say if you are doing anything wrong.
you could post a link to your customized files...
Posts: 72
I dont change anything in global. I am using oryginal. I changed only layouts/matrix/albumbody and singlebody.tpl
In global i only want put meta tags.
Tell me where is right place?
Posts: 32509
copy global.tpl to templates/local/global.tpl and right after
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
add your other <meta .../> tags
use pure (X)HTML.
Posts: 72
what "pure (X)HTML" means?
i am using dreamwaver or notepad to edit.
Posts: 32509
webpages are written in XHTML or HTML, the difference between XHTML and HTML is very small. i wanted to express that you can add your meta tags there, but don't add non-HTML conform things.
just add your <meta ... /> tags there and it should be fine
Posts: 72
Meta tags works fine. Tnx
I will think about other integrations and changes in global.tpl