• twitter image
  • facebook image
  • youtube image
  • linkedin image
Language: CMS Made Simple Czech CMS Made Simple France CMS Made Simple Hungary CMS Made Simple Russia CMS Made Simple Netherlands

All times are UTC




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: [SOLVED] Gallery Module Custom Fields Not Working
PostPosted: Tue Aug 02, 2011 3:23 am 
Offline
Forum Members
Forum Members
User avatar

Joined: Fri Apr 03, 2009 11:29 pm
Posts: 181
Location: Panama City, Panama
Hi everyone, I've been working with the Gallery Module sometime now and it's great, but I recently tried the Custom Fields option and I can't get it to work.

I'm using it like this: {$fields.date.value} to get the value of the custom field I created but it's not working. I tried {$fields.date.name} and I get the field name on screen, also tried {$fields.fechas.type} and I get the field type on screen. I can't figure out why the value is not showing.

I'm using CMSMS 1.9.4.2 with this modules:
CGExtensions 1.26.3
CGSimpleSmarty 1.4.8
CMSMailer 2.0.1
FileManager 1.1.0
FormBuilder 0.7
Gallery 1.4.4
MenuManager 1.7.6
ModuleManager 1.4.2
News 2.11.3
nuSOAP 1.0.2
Printing 1.1.2
Products 2.13.1
Search 1.6.10
Showtime 2.0.4
ThemeManager 1.1.4
TinyMCE

Could someone please give me a hand with this?

Thanks in advance.

_________________
Mr. Bacan.
If heaven gives you lemons, learn how to make lemonade.


Last edited by mr.bacan on Tue Aug 02, 2011 9:12 pm, edited 1 time in total.

Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: Gallery Module Custom Fields Not Working
PostPosted: Tue Aug 02, 2011 11:09 am 
Offline
Support Guru
Support Guru
User avatar

Joined: Wed Sep 05, 2007 8:03 pm
Posts: 3999
Location: The Netherlands
I do not recognize this issue, it works for me...

Did you check the setting that it is a public field?

_________________


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: Gallery Module Custom Fields Not Working
PostPosted: Tue Aug 02, 2011 1:51 pm 
Offline
Forum Members
Forum Members
User avatar

Joined: Fri Apr 03, 2009 11:29 pm
Posts: 181
Location: Panama City, Panama
Jos wrote:
Did you check the setting that it is a public field?

Yes Jos, the field is public and is set to affect galleries. I also created a new one to affect images and it doesn't work either.

_________________
Mr. Bacan.
If heaven gives you lemons, learn how to make lemonade.


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: Gallery Module Custom Fields Not Working
PostPosted: Tue Aug 02, 2011 2:00 pm 
Offline
Support Guru
Support Guru
User avatar

Joined: Wed Sep 05, 2007 8:03 pm
Posts: 3999
Location: The Netherlands
Just to be sure: did you add the {$fields.date.value} tag in the right Gallery template? ;)

If so, the only thing I can do is to offer you to have a look in your admin. If you want, you can PM me a temporary account.

_________________


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: Gallery Module Custom Fields Not Working
PostPosted: Tue Aug 02, 2011 8:56 pm 
Offline
Support Guru
Support Guru
User avatar

Joined: Wed Sep 05, 2007 8:03 pm
Posts: 3999
Location: The Netherlands
Thanks for having me take a look ;)

You used the gallery variable within the foreach loop for images/subgalleries.

So because you need the field value while you are not in the gallery itself, the values for your 'Fechas' variable are only available in the $images object-array.

So I changed {$fields.fechas.value} to {$image->fields.fechas.value} and now it works 8)

_________________


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: Gallery Module Custom Fields Not Working
PostPosted: Tue Aug 02, 2011 9:11 pm 
Offline
Forum Members
Forum Members
User avatar

Joined: Fri Apr 03, 2009 11:29 pm
Posts: 181
Location: Panama City, Panama
Thanks a lot for your valuable help Jos.
Now it's working as it should.

Is this a bug or it was just my lack of smarty knowledge? :D

_________________
Mr. Bacan.
If heaven gives you lemons, learn how to make lemonade.


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: [SOLVED] Gallery Module Custom Fields Not Working
PostPosted: Tue Aug 02, 2011 9:29 pm 
Offline
Support Guru
Support Guru
User avatar

Joined: Wed Sep 05, 2007 8:03 pm
Posts: 3999
Location: The Netherlands
This is not a bug, it was ment to work this way.

You would have noticed it directly if you had filled the value for the top gallery. But since it was empty, I guess it wasn't that obvious in your case ;)

_________________


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
HostPapa CMS Made Simple hosting