Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help with sidebar
#1
Hi,

can someone explain or have an idea on how i can use the i18n gallery's in my sidebar

i am trying to create a kind of gallery but i need the images to also link to pages

can anyone help?
Reply
#2
did you check the Website of the plugin? There are lots of examples:
http://mvlcek.bplaced.net/

I move this topic to the relevant folder, as "general questions" is not the right category for your question
|--

Das deutschsprachige GetSimple-(Unter-)Forum:   http://get-simple.info/forums/forumdisplay.php?fid=18
Reply
#3
Hi Connie,

Yes just realised that after looking at the examples, i have one other question just a quick one with regards to GS

sorry if this is very basic but in the code it mentions my-gallery-slug

could anyone or yourself explain a slug to me and where i find it?

sorry to be a pain.

Thanks
Richard



Connie Wrote:did you check the Website of the plugin? There are lots of examples:
http://mvlcek.bplaced.net/

I move this topic to the relevant folder, as "general questions" is not the right category for your question
Reply
#4
http://en.wikipedia.org/wiki/Slug_(web_publishing)
The SLUG is a part of the URL of the page, which you created in the pages tab under the page options field called Custom URL (Slug):
Be sure to enable Fancy URLS
1. A page called gallery is created when you install the I18N plugin or when you first create your gallery under the galleries tab.
2. Upload your image(s) in files tab.
3. Go to gallery tab and create a new gallery and call it 'gundam'. Grab the image(s) using "add images" and locate the image.
4. You then need to create a child page under gallery called "gundam" by entering it into the page title and it will auto-generate a slug called 'gundam' or type 'gundam' into the slug field.
3.<?php get_i18n_gallery_link('my-gallery-name',
array('url'=>'my-gallery-slug', 'thumb'=>0)); ?> (I guess you should use a relative url but also an absolute url like http://www.yourdomain.com/gallery/gundam/) should work)
Replace 'my-gallery-name' with 'gundam', which is the gallery name.
4.Replace my-gallery-slug with '/gallery/gundam' (Parent Page gallery, child page gundam)
5.set thumb equal to 1 to display first thumbnail in gallery.
6. Go to theme editor > theme editor > sidebar.inc.php and add the php include.
You will probably need to use css to make it look good.
<?php get_i18n_gallery_link('gundam', array('url'=>'/gallery/gundam', 'thumb'=>1)); ?>
[Image: capture4y.png]
Todo arde si le aplicas la chispa adecuada.
Reply
#5
Thank You Very Much...Problem sorted!

much appreciated
Reply
#6
Neotropex Wrote:could anyone or yourself explain a slug to me and where i find it?

Richard, next time please ask a new question in a new post, that will be better

Cheers, Connie
|--

Das deutschsprachige GetSimple-(Unter-)Forum:   http://get-simple.info/forums/forumdisplay.php?fid=18
Reply




Users browsing this thread: 2 Guest(s)