Custom fields

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
chasy
Regular
Posts: 31
Joined: Sat Jan 27, 2007 4:19 pm
Contact:

Custom fields

Post by chasy »

I put this {$entry.properties.ep_MyCustomField1} in entries.tpl
and I can´t se my text.

what have I don wrong?


Ingalill

http://www.necessities.info/blogs/
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Custom fields

Post by garvinhicking »

Hi!

Did you follow all theother steps? Configure the entryproperties plugin to have a "MyCustomField1" value, create an entry where you entered something in that field?

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
chasy
Regular
Posts: 31
Joined: Sat Jan 27, 2007 4:19 pm
Contact:

Custom field

Post by chasy »

yes, when i write article , CustomField1 ( I test to press media and this comes upp /blogs/uploads/Hstarna/P1000647.serendipityThumb.jpg

Have I mis something
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Custom field

Post by garvinhicking »

Hi!

You must call the Field exactly like in your entry. Do not call it CustomField1, but call it MyCustomField1!

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
chasy
Regular
Posts: 31
Joined: Sat Jan 27, 2007 4:19 pm
Contact:

Post by chasy »

If I do

{$entry.properties.ep_MyCustomField1} I se nothing

{$entry.properties.ep_CustomField2} I se text in my blog
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Yes, of course. You need to keep your names in synch. MyCustomFieldX is not the same like CustomFieldX!

Keep the names the same. Variables are named like the original property name you entered in the configuration, only the 'ep_' is prefixed there.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
chasy
Regular
Posts: 31
Joined: Sat Jan 27, 2007 4:19 pm
Contact:

Post by chasy »

Hmm I am a bit confused, it work well like this

ingalill {$entry.properties.ep_ingalill}
eniro {$entry.properties.ep_eniro}
sega {$entry.properties.ep_sega}

but I can´t use media button , but html code
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

I'm confused, can you describe more detailed what you mean? What do you want to achieve, and what do you enter where?

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
chasy
Regular
Posts: 31
Joined: Sat Jan 27, 2007 4:19 pm
Contact:

testig custom field

Post by chasy »

Im just testing plugin Extended properties for entries
if I have understand rigth I can use som text or images in (custom fields)

In entries.tpl I put {$entry.properties.ep_ingalill} wher I whant it to show up.

I´m just confusing over that it works this way {$entry.properties.ep_ingalill}

and not this way {$entry.properties.ep_Myingalill}

The plugin have good explaining but that not works on my page

sorry for bad english
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: testig custom field

Post by garvinhicking »

Hi!

Inside the Extended properties plugin you enter names like "Customfield1, Customfield2, Customfield3". Exactly the name you entered you must use in your entries.tpl

$entry.propertiy.ep_Customfield1, $entry.propertiy.ep_Customfield2 and $entry.propertiy.ep_Customfield3.

The "MyCustomField" was just an example of the plugin which required that you configured "MyCustomField" inside the plugin configuration.

Bestregards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
chasy
Regular
Posts: 31
Joined: Sat Jan 27, 2007 4:19 pm
Contact:

Post by chasy »

Ops sorry , I like to try the plugin, I read carfully but some times I´m not understand.

It works great and now I se more possibilitis with the tpl.

Thanks for your help

Ingalill
Post Reply