Page 11 of 22
Re: A new photo album manager : Gallery
Posted: Sun Oct 10, 2010 8:33 pm
by Jos

That code is wrong and doesn't make sense at all...
Let's put it clear that it was not my suggestion :P
Re: A new photo album manager : Gallery
Posted: Sun Oct 10, 2010 8:44 pm
by requish
haha

I know

but... its work! I struggled with this all day (now i have on the clock 10:40pm).
I will not touch it anymore
Thanks again
*************
EDIT:
I have new question. How make URLs generated by gallery like that?:
http://www.xxx.com/en/travel/somegallery.html 
or (and that will be better)
http://www.xxx.com/en/somegallery.html
Now I have looks like this, and this is bad:
http://www.xxx.com/en/travel/home_trave ... -4-15.html
Cheers
--
EDIT:
Please Help!!!
Re: A new photo album manager : Gallery
Posted: Thu Oct 14, 2010 3:36 pm
by requish
Jos wrote:
If you need an extra custom field for each image, you should mark it as such when you create it.
If you created a custom field for an
image and called it "googlemaps", you can call it in your templates
inside the foreach loop for images with
To parse the smarty code that you've entered in the field. you can call it in your template
inside the foreach loop for images with
Code: Select all
{eval var=$image->fields.googlemaps.value}
Hi,
Can I please help me with this. However I need new input for some text. In this time "SEOTitle".
Ive made this in of my template:
Code: Select all
<title>{if isset($gallery->images)}
{foreach from=$gallery item=image}{$image->fields.SEOTitle.value}{/foreach}{/if}</title>
But this is desnt work.
Some like this too desnt work:
Code: Select all
<title>{if isset($entry->fields)}
{foreach from=$entry->fields item='field'}{if $field->type == 'file'}{else}{eval var=$field->value}{/if}{/foreach}{/if}</title>
Code: Select all
<title>{if isset($entry->fields)}
{foreach from=$entry->fields item='field'}{if $field->type == 'file'}{else}{eval var=$image->fields.SEOTitle.value}{/if}{/foreach}{/if}</title>

Thanks
Re: A new photo album manager : Gallery
Posted: Thu Oct 14, 2010 6:42 pm
by nicmare
simply try
Code: Select all
<title>{if $image->fields.SEOTitle.value}{$image->fields.SEOTitle.value}{else}regular title{/if}</title>
OR
1. write in your gallery template in first line
Code: Select all
{capture assign=gallerytitle}{$image->fields.SEOTitle.value}{/capture}
2. and in main template
Code: Select all
<title>{if $gallerytitle}{$gallerytitle}{else}regular title{/if}</title>
Re: A new photo album manager : Gallery
Posted: Fri Oct 15, 2010 11:04 am
by requish
nicmare wrote:
simply try
Code: Select all
<title>{if $image->fields.SEOTitle.value}{$image->fields.SEOTitle.value}{else}regular title{/if}</title>
OR
1. write in your gallery template in first line
Code: Select all
{capture assign=gallerytitle}{$image->fields.SEOTitle.value}{/capture}
2. and in main template
Code: Select all
<title>{if $gallerytitle}{$gallerytitle}{else}regular title{/if}</title>
Thans for reply!
I use "$gallerytitle" to, soo I cant replace this command.
Code: Select all
<title>{if $image->fields.SEOTitle.value}{$image->fields.SEOTitle.value}{else}regular title{/if}</title>
Doesnt work for me...

Re: A new photo album manager : Gallery
Posted: Fri Oct 15, 2010 11:06 am
by nicmare
ups. i forgot. than call it as you want $mygallerytitle or what ever. use your brain

Re: A new photo album manager : Gallery
Posted: Fri Oct 15, 2010 11:07 am
by requish
nicmare wrote:
ups. i forgot. than call it as you want $mygallerytitle or what ever. use your brain
Ohh, I dont known that, I'll use

Re: A new photo album manager : Gallery
Posted: Fri Oct 15, 2010 11:23 am
by requish

nothin works
1. I write in gallery template in first line
Code: Select all
{capture assign=seogallery}{$image->fields.seotitle.value}{/capture}
2. and in main template
Code: Select all
<title>{if $seogallery}{$seogallery}{else}regular title{/if}</title>
whats wrong with this?
---edit---
YES! I know where was been error:
Code: Select all
{capture assign=seogallery}{$image->field.seotitle.value}{/capture}
should looks like that:
Code: Select all
{capture assign=seogallery}{$fields.seotitle.value}{/capture}
Thanks for helping!
Re: A new photo album manager : Gallery
Posted: Sat Oct 16, 2010 7:44 am
by Nikau
Hello,
I am having hard work installing the module. I tried uploading xml, installing from the .rar with the same result. It seems to have issues with permissions, either on the uploads/image directories or on the module directory itself.
I tried to chmod 705 ,755 or 777 with no success. When chmod the Gallery and GalleryThumbs, the module is said not installed in the module section of the admin, but when trying to install, it sends me to the admin home without any warning. It doesn't propose me to uninstall the module (to start a fresh one) but to change permission to some files. It doesn't succeed to change permission though the cmsms install went well except the httpd can't create directories. That point may be the whole problem.
How could I find a workaround to fix my problem?
Thanks
Re: A new photo album manager : Gallery
Posted: Sat Oct 16, 2010 10:13 am
by Jos
Nikau wrote:
It doesn't succeed to change permission
Maybe this topic helps:
http://forum.cmsmadesimple.org/index.ph ... 505.0.html
Re: A new photo album manager : Gallery
Posted: Sat Oct 16, 2010 12:19 pm
by Nikau
Indeed, the umask of my installation was set to 777. This proved to be the problem. I had to fight a bit since the installation was messy, but it finally installed without error.
Thanks
Re: A new photo album manager : Gallery
Posted: Tue Oct 19, 2010 7:49 pm
by requish
Hi again
My new question:
I want to put a value define by me textinput field from the module 'gallery' in the overall page template in place define by me, ex between some global block. as a separate piece, not integrated directly into the module 'gallery'. However, the module will shows at content in this same time.
It is possible?
Ive tried create this using new gallery-template to display only value from my field. No results.
Re: A new photo album manager : Gallery
Posted: Tue Oct 19, 2010 10:08 pm
by Jos
I really don't understand what you are trying to accomplish.
Maybe you can rewrite your question in shorter sentences? Or maybe you're more familiar with German, then you could PM me your question in German please?
Re: A new photo album manager : Gallery
Posted: Tue Oct 19, 2010 10:38 pm
by requish
More Polish
Soo simpler its looks that:
Imagine!
In backend (admin)
I define in Gallery custom field named 'CategoryForModule' with alias 'categoryformodule'.
I have another module called 'Banery'.
In frontend
TOP WEBSITE
{content} There displayed detail content of module Gallery using "X" template-text,imagesThere placed my Banery module, in this part I would like see text value in attribute 'category' entered in custom field in my Gallery
FOOTER WEBSITE
As You can see, they both are not together at one place.
Better?

Re: A new photo album manager : Gallery
Posted: Wed Oct 20, 2010 7:25 am
by Jos
Ok
I assume that your categoryformodule field applies to galleries ("Apply field for" setting).
If your html template looks somewhat like this:
Code: Select all
<div>Top Website</div>
<div id="left_column">{content}</div>
<div id="right_column">{bannery}</div>
<div>Footer Website</div>
And you have the {Gallery} tag in the content field of the page, then all smartyvariables that are defined within the {content} tag, are available further downward in your template.
This means that you can use the {$fields.categoryformodule.value} tag in your bannery module. (unless bannery sets the $fields variable itself)
Or...
If your template is the other way around like this:
Code: Select all
<div>Top Website</div>
<div id="right_column">{bannery}</div>
<div id="left_column">{content}</div>
<div>Footer Website</div>
Then to use the {$fields.categoryformodule.value} tag in your bannery module, you should change it to:
Code: Select all
<div>Top Website</div>
{capture name=my_content}{content}{capture}
<div id="right_column">{bannery}</div>
<div id="left_column">{$smarty.capture.my_content}</div>
<div>Footer Website</div>