flush template

lucasnet

Joined: 2005-06-04
Posts: 72
Posted: Sun, 2005-06-26 17:21

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.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sun, 2005-06-26 17:49

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/

 
lucasnet

Joined: 2005-06-04
Posts: 72
Posted: Sun, 2005-06-26 19:20

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.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sun, 2005-06-26 20:04

you'll have to post the changes you apply.
and what is the error you get?

 
lucasnet

Joined: 2005-06-04
Posts: 72
Posted: Mon, 2005-06-27 09:33

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 ^^.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Mon, 2005-06-27 09:39

then i can't help you. i don't know what you changed exactly and i don't see the error.

 
lucasnet

Joined: 2005-06-04
Posts: 72
Posted: Wed, 2005-06-29 09:03

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>

??

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Wed, 2005-06-29 09:11

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.

 
lucasnet

Joined: 2005-06-04
Posts: 72
Posted: Wed, 2005-06-29 09:45

What with keywords ?

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Wed, 2005-06-29 14:07

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...

 
lucasnet

Joined: 2005-06-04
Posts: 72
Posted: Thu, 2005-06-30 07:43

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? :)

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Thu, 2005-06-30 09:18

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.

 
lucasnet

Joined: 2005-06-04
Posts: 72
Posted: Thu, 2005-06-30 09:28

what "pure (X)HTML" means?

i am using dreamwaver or notepad to edit.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Thu, 2005-06-30 09:39

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

 
lucasnet

Joined: 2005-06-04
Posts: 72
Posted: Thu, 2005-06-30 19:14

Meta tags works fine. Tnx

I will think about other integrations and changes in global.tpl :)