Greenguy's Board


Go Back   Greenguy's Board > General Business Knowledge
Register FAQ Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Rating: Thread Rating: 1 votes, 5.00 average. Display Modes
Old 2008-12-07, 12:32 PM   #1
Simon
That which does not kill us, will try, try again.
 
Simon's Avatar
 
Join Date: Aug 2003
Location: Conch Republic
Posts: 5,150
Send a message via ICQ to Simon Send a message via AIM to Simon Send a message via Yahoo to Simon
Quote:
Originally Posted by Star Man View Post
I use 'keywords' for titles like this.

{$gallery.keywords|htmlspecialchars}

The only annoying thing about it is when reviewing sites,I have to copy the site name from the 'site name' field and paste it into the 'keywords' field but other then that,I think this set up works great.
Maybe I'm missing the point... is there a reason, in the page template, not to just use the name of the user-defined field that you created where you're using the 'keywords' field now? Like this I mean:

{$gallery.site_name|htmlspecialchars}

I'm asking because I see this in the docs for the script:
In addition to these default values, all of your user defined gallery fields will be available from this template value as well. So, for example, if you create a user defined field with the name icq_number you can access this value using {$gallery.icq_number}
So I was planning to create a field called "title" and just do this in the page templates where I wanted to show the free site's title:

{$gallery.title|htmlspecialchars}

Is there a reason that using the built-in 'keywords' field instead would be better for some reason?



.
__________________
"If you're happy and you know it, think again." -- Guru Pitka
Simon is offline   Reply With Quote
Old 2008-12-07, 01:50 PM   #2
Star Man
A boy without mischief is like a bowling ball without a liquid center
 
Star Man's Avatar
 
Join Date: Feb 2006
Location: clevel.......don't make me say it!
Posts: 436
Quote:
Originally Posted by Simon View Post
Maybe I'm missing the point... is there a reason, in the page template, not to just use the name of the user-defined field that you created where you're using the 'keywords' field now? Like this I mean:

{$gallery.site_name|htmlspecialchars}

I'm asking because I see this in the docs for the script:
In addition to these default values, all of your user defined gallery fields will be available from this template value as well. So, for example, if you create a user defined field with the name icq_number you can access this value using {$gallery.icq_number}
So I was planning to create a field called "title" and just do this in the page templates where I wanted to show the free site's title:

{$gallery.title|htmlspecialchars}

Is there a reason that using the built-in 'keywords' field instead would be better for some reason?



.
No,your not missing any points Simon.I just thought 'keywords' would be a quick easy way to do it really.If you feel you want to create a custom field that you like better,go for it.
__________________
good luck
Star Man is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:11 AM.


Mark Read
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc