Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2011-11-22 18:44:49
- elwins
- Member
- From: Latvia
- Registered: 2011-08-29
- Posts: 80
Gallery categories and forms
Hello,
Maybe someone can help me with Galleries?
In my article section I have category menu, when I open some of theese categories I see list of articles of that category okey, thats very nice, but when I open gallery section I have category menu too (images categories menu), but when I open some of category it dosn’t show images of that category, but index.php page.
This is mine gallery code:
<!-- insert your sidebar items here -->
<div id="thumbs" class="navigation">
<txp:images class="thumbs noscript" wraptag="ul" break="li" category="Nr1">
<a class="thumb" name="<txp:image_info type="name"/>" href="<txp:image_url/>"><txp:thumbnail/></a></txp:images>
<!-- insert the page content here -->
<div id="gallery" class="content">
<div id="controls" class="controls"></div>
<div class="slideshow-container">
<div id="loading" class="loader"></div>
<div id="slideshow" class="slideshow"></div>
</div>
</div>
<script type="text/javascript"> jQuery(document).ready(function($) { // We only want these styles applied when javascript is enabled $('div.navigation').css({'width' : '100%'}); $('div.content').css('display', 'block'); // Initially set opacity on thumbs and add // additional styling for hover effect on thumbs var onMouseOutOpacity = 0.67; $('#thumbs ul.thumbs li').opacityrollover({ mouseOutOpacity: onMouseOutOpacity, mouseOverOpacity: 1.0, fadeSpeed: 'fast', exemptionSelector: '.selected' }); // Initialize Advanced Galleriffic Gallery var gallery = $('#thumbs').galleriffic({ delay: 2500, numThumbs: 9, preloadAhead: 10, enableTopPager: true, enableBottomPager: true, maxPagesToShow: 10, imageContainerSel: '#slideshow', controlsContainerSel: '#controls', captionContainerSel: '#caption', loadingContainerSel: '#loading', renderSSControls: true, renderNavControls: true, playLinkText: 'Palaist slaidrādi', pauseLinkText: 'Apstādināt slaidrādi', prevLinkText: '‹ Iepriekšējais foto', nextLinkText: 'Nākamais foto ›', nextPageLinkText: 'Nākamais ›', prevPageLinkText: '‹ Iepriekšējais', enableHistory: false, autoStart: false, syncTransitions: true, defaultTransitionDuration: 900, onSlideChange: function(prevIndex, nextIndex) { // 'this' refers to the gallery, which is an extension of $('#thumbs') this.find('ul.thumbs').children() .eq(prevIndex).fadeTo('fast', onMouseOutOpacity).end() .eq(nextIndex).fadeTo('fast', 1.0); }, onPageTransitionOut: function(callback) { this.fadeTo('fast', 0.0, callback); }, onPageTransitionIn: function() { this.fadeTo('fast', 1.0); } }); }); </script>
Category menu code:
<txp:category_list parent="galeries" type="image" />
Last edited by elwins (2011-11-22 18:59:39)
Offline
Re: Gallery categories and forms
Hi
You must post the entire code you use to show your page: i think you have a txp:article tag inside your page but to show images you need a txp:images tag somewhere in your code.
and also have you set a section inside category tag in your menu like that: <txp:category name=“cat1” section=“article” /> for articles and <txp:category name=“cat1” section=“galleries” />
Cheers
Offline
#3 2011-11-25 13:29:58
- elwins
- Member
- From: Latvia
- Registered: 2011-08-29
- Posts: 80
Re: Gallery categories and forms
Thats all code, but the bigest problem is with this:
<txp:category_list parent="galeries" type="image" />
Because it shows categories, but I cant open them, they dont have any content. And in default in forms arnt any gallery form.
Offline
Re: Gallery categories and forms
Hi have you a link to a page that we can look at?
Offline
#5 2011-11-26 16:52:03
- elwins
- Member
- From: Latvia
- Registered: 2011-08-29
- Posts: 80
Re: Gallery categories and forms
Offline
Re: Gallery categories and forms
Hi
When viewing this link http://webdev.lv/kazas/galerijas/ i see images and the gallery works, but you have changed something right now and i see you added a second category nr2 and now that s not working!
huumm hard to try when you are changing codes during my viewing, but i think you are not far from solution!
Offline
#7 2011-11-26 17:32:51
- elwins
- Member
- From: Latvia
- Registered: 2011-08-29
- Posts: 80
Re: Gallery categories and forms
Yea, I was thinking, how to resolve it, and tested some variantions and I i did it! :)
This is clear TXP default tag gallery, no plugins or modifications! :)
All problems resolved! Dragondz Thanks for helping!
Offline
Re: Gallery categories and forms
Happy that you solved your problem!
Offline
Pages: 1