A new photo album manager : Gallery

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Locked
Jos
Support Guru
Support Guru
Posts: 4019
Joined: Wed Sep 05, 2007 8:03 pm
Location: The Netherlands

Re: A new photo album manager : Gallery

Post by Jos »

:o  That code is wrong and doesn't make sense at all...

Let's put it clear that it was not my suggestion  :P
User avatar
requish
Forum Members
Forum Members
Posts: 183
Joined: Sat Jan 24, 2009 3:12 pm

Re: A new photo album manager : Gallery

Post by requish »

haha  :D
I know  :D but... its work! I struggled with this all day (now i have on the clock 10:40pm).

I will not touch it anymore :P

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!!!
Last edited by requish on Tue Oct 12, 2010 6:42 pm, edited 1 time in total.
CMS Made Simple! Best CMS! :)
User avatar
requish
Forum Members
Forum Members
Posts: 183
Joined: Sat Jan 24, 2009 3:12 pm

Re: A new photo album manager : Gallery

Post 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

Code: Select all

{$image->fields.googlemaps.value}
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
CMS Made Simple! Best CMS! :)
nicmare
Power Poster
Power Poster
Posts: 1150
Joined: Sat Aug 25, 2007 9:55 am
Location: Berlin

Re: A new photo album manager : Gallery

Post 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>
Last edited by nicmare on Thu Oct 14, 2010 6:44 pm, edited 1 time in total.
User avatar
requish
Forum Members
Forum Members
Posts: 183
Joined: Sat Jan 24, 2009 3:12 pm

Re: A new photo album manager : Gallery

Post 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...  ::)
CMS Made Simple! Best CMS! :)
nicmare
Power Poster
Power Poster
Posts: 1150
Joined: Sat Aug 25, 2007 9:55 am
Location: Berlin

Re: A new photo album manager : Gallery

Post by nicmare »

ups. i forgot. than call it as you want $mygallerytitle or what ever. use your brain ;)
User avatar
requish
Forum Members
Forum Members
Posts: 183
Joined: Sat Jan 24, 2009 3:12 pm

Re: A new photo album manager : Gallery

Post 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  :-X
CMS Made Simple! Best CMS! :)
User avatar
requish
Forum Members
Forum Members
Posts: 183
Joined: Sat Jan 24, 2009 3:12 pm

Re: A new photo album manager : Gallery

Post 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!
Last edited by requish on Fri Oct 15, 2010 11:44 am, edited 1 time in total.
CMS Made Simple! Best CMS! :)
Nikau
New Member
New Member
Posts: 5
Joined: Sat Oct 16, 2010 7:34 am

Re: A new photo album manager : Gallery

Post 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
Jos
Support Guru
Support Guru
Posts: 4019
Joined: Wed Sep 05, 2007 8:03 pm
Location: The Netherlands

Re: A new photo album manager : Gallery

Post by Jos »

Nikau wrote: It doesn't succeed to change permission
Maybe this topic helps: http://forum.cmsmadesimple.org/index.ph ... 505.0.html
Nikau
New Member
New Member
Posts: 5
Joined: Sat Oct 16, 2010 7:34 am

Re: A new photo album manager : Gallery

Post 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
User avatar
requish
Forum Members
Forum Members
Posts: 183
Joined: Sat Jan 24, 2009 3:12 pm

Re: A new photo album manager : Gallery

Post by requish »

Hi again  ;D

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.
CMS Made Simple! Best CMS! :)
Jos
Support Guru
Support Guru
Posts: 4019
Joined: Wed Sep 05, 2007 8:03 pm
Location: The Netherlands

Re: A new photo album manager : Gallery

Post 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?
User avatar
requish
Forum Members
Forum Members
Posts: 183
Joined: Sat Jan 24, 2009 3:12 pm

Re: A new photo album manager : Gallery

Post by requish »

More Polish :P

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 GalleryFOOTER WEBSITE
As You can see, they both are not together at one place.

Better? ::)
Last edited by requish on Tue Oct 19, 2010 10:40 pm, edited 1 time in total.
CMS Made Simple! Best CMS! :)
Jos
Support Guru
Support Guru
Posts: 4019
Joined: Wed Sep 05, 2007 8:03 pm
Location: The Netherlands

Re: A new photo album manager : Gallery

Post 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>
Locked

Return to “Modules/Add-Ons”