No entries or all...

Get help with installation and running PivotX 2.0.x here. Please do not post Extension or Theme related questions here.

No entries or all...

Postby AlexanderC » Wed Apr 25, 2012 1:49 pm

Hi, i'm using PivotX - 2.3.2, here's the site http://thecodekitchen.tk/

It is used flat file DB.

I've added a lot of categories assigned to my user i publish the posts with. But- when i select an category from the sidebar and am redirected to specific category page i can see all entries and not only for that category.

The second issue is that i can't see any entry on any from multiple taga page.

Will be glad to see an answer regarding these issues...


P.S and also i meet problems with file uploading in editor (the rights are set to 0775 but it won't work with 0777 too). I'm uploading in images directory
AlexanderC
 
Posts: 6
Joined: Wed Apr 25, 2012 1:45 pm

Re: No entries or all...

Postby hansfn » Wed Apr 25, 2012 4:23 pm

But- when i select an category from the sidebar and am redirected to specific category page i can see all entries and not only for that category.

The subweblog needs to be named 'default', 'standard', 'main' or 'weblog' for this to work - check your templates/weblog settings.
hansfn
Developer
 
Posts: 3087
Joined: Sun Nov 25, 2007 7:48 pm
Location: Molde, Norway

Re: No entries or all...

Postby AlexanderC » Wed Apr 25, 2012 4:29 pm

hansfn wrote:
But- when i select an category from the sidebar and am redirected to specific category page i can see all entries and not only for that category.

The subweblog needs to be named 'default', 'standard', 'main' or 'weblog' for this to work - check your templates/weblog settings.

wow- it worked like an charm...

And what about tags??? is there any setting that i've omitted?
AlexanderC
 
Posts: 6
Joined: Wed Apr 25, 2012 1:45 pm

Re: No entries or all...

Postby hansfn » Wed Apr 25, 2012 4:44 pm

Most likely you have assigned a wrong template for the "Extra Template" setting. That template must contain "[[ content ]]" (which is replaced with search results or tags accordingly).
hansfn
Developer
 
Posts: 3087
Joined: Sun Nov 25, 2007 7:48 pm
Location: Molde, Norway

Re: No entries or all...

Postby AlexanderC » Wed Apr 25, 2012 4:53 pm

hansfn wrote:Most likely you have assigned a wrong template for the "Extra Template" setting. That template must contain "[[ content ]]" (which is replaced with search results or tags accordingly).


I suppose that the template already have this tag, please look at the code, is it right?
(Search results are displayed right)

Code: Select all
<div id="main">
         <h1 id="title"><a href="/">[[sitename]]</a></h1>
         <div id="content">
            
            <div id="search-results-list" class="entry">
            [[ if $modifier.pagetype=="search" ]]
            <h2>[[t]]Результаты поиска[[/t]]</h2>
            [[search button=false]]
            [[/if]]
      
            <p class="searchheading">[[searchheading
            result0="Нет результатов по запросу:<br/><small>- %query%</small>"
            result1="Найден один результат по запросу:<br/><small>- %query%</small>"
            resultmore="%num% результатов по запросу:<br/><small>- %query%</small>"
            ]]</p>
            
            [[searchresults   prefix="<ul>" postfix="</ul>" titletrimlength=50 excerptlength=200 ]]
            <li><h3><a class="searchresult-title" href="%link%">%title%</a></h3>
            %excerpt%
            <div class="readmore"><a href="%link%">[[ more]]</a></div>
            </li>
            [[/searchresults]]
               
            [[ content ]]
                        
            </div><!-- /search-results-list -->

            
         </div><!-- /content-->
         <div class="spacer">&nbsp;</div>
      </div><!-- /main-->
AlexanderC
 
Posts: 6
Joined: Wed Apr 25, 2012 1:45 pm

Re: No entries or all...

Postby hansfn » Wed Apr 25, 2012 5:10 pm

If you look at the source code of http://thecodekitchen.tk/?x=tagpage you'll find

Code: Select all
<!-- Searchresults were already output -->

This is because you have both a searchresults block and the content tag in your template. If you move all the search related stuff into the if block, it will work:

Code: Select all
            [[ if $modifier.pagetype=="search" ]]
            <h2>[[t]]Результаты поиска[[/t]]</h2>
            [[search button=false]]
            MOVE ALL SEARCH STUFF HERE
            [[else]]
                [[ content ]]
            [[/if]]

This construct is used in the default templates - see for example skinny/search_template.html
hansfn
Developer
 
Posts: 3087
Joined: Sun Nov 25, 2007 7:48 pm
Location: Molde, Norway

Re: No entries or all...

Postby AlexanderC » Thu Apr 26, 2012 10:27 am

hansfn wrote:If you look at the source code of http://thecodekitchen.tk/?x=tagpage you'll find

Code: Select all
<!-- Searchresults were already output -->

This is because you have both a searchresults block and the content tag in your template. If you move all the search related stuff into the if block, it will work:

Code: Select all
            [[ if $modifier.pagetype=="search" ]]
            <h2>[[t]]Результаты поиска[[/t]]</h2>
            [[search button=false]]
            MOVE ALL SEARCH STUFF HERE
            [[else]]
                [[ content ]]
            [[/if]]

This construct is used in the default templates - see for example skinny/search_template.html



Thx for the answer- changed and it works...
AlexanderC
 
Posts: 6
Joined: Wed Apr 25, 2012 1:45 pm


Return to 2.x Support Forum

Who is online

Users browsing this forum: No registered users and 2 guests