21 of 27
21
Tome (Static Pages)
Posted: 12 February 2007 10:35 PM   [ Ignore ]   [ # 361 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  599
Joined  12-10-2006

Hmmm, I can’t get this to work without the /content in the URL.

I have installed the module and activated it and the extension.

I have a weblog called ‘info’

The webog ‘info’ is using a template which contains:

{exp:weblog:entries category=”{static_page}” dynamic=“off”}
  {summary}
  {body}
{/exp:weblog:entries}

I have several categories all of which have been assigned to the weblog ‘info’ (some of those categories also have subcategories)

I have gone into the pages module and selected ‘info’ as the weblog and hit save.

When i get back to the main screen, it says: “There are no categories in the group About.”

Profile
 
 
Posted: 12 February 2007 11:02 PM   [ Ignore ]   [ # 362 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  599
Joined  12-10-2006

I figured out why it was coming up with that error; although the weblog options let you assign multiple categories to each weblog by cntrl-clicking in the select list, the pages modules seems to get confused by this. If I deselect all but one category, and make sure that category has subcategories, the pages module works.
Also, categories which don’t have any children do not show up in the publish > categories screen.

What this means in practice (as I currently understand it) is that I cannot have my shorter urls as described in my previous post.
Why? Because the pages module only lets you select one weblog, and the weblogs only allow you to select one category (and that category must have subcategories) - if you try to select multiple categories or categories without children, the pages mod doesn’t work, nor do the childless categories show up in the publish screen.

This means that I have to create both my ‘donate’ and ‘about’ categories under another category, e.g. ‘info’, and thus I get my longer url: http://www.mysite.com/index.php/info/about

If I am misunderstanding something, please let me know, thank you.

Profile
 
 
Posted: 13 February 2007 03:05 PM   [ Ignore ]   [ # 363 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  785
Joined  07-18-2006

Is there an easy way to use pagination with Pages? I need to use pagination on a variety of pages (Pages pages :D), but because the Pages url doesn’t use the typical template/weblog structure the pagination links go nowhere.

Any thoughts?

Profile
 
 
Posted: 13 February 2007 04:35 PM   [ Ignore ]   [ # 364 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  222
Joined  08-07-2005

Can someone explain what the “Override Template” checkbox is for.

 Signature 

Anna Brown ~ {MediaGirl} ~ {Portfolio}
Providing web programming services for creative agencies & designers.

Profile
 
 
Posted: 13 February 2007 06:02 PM   [ Ignore ]   [ # 365 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1194
Joined  01-05-2006

@The Pie Man: I’ve had the problem also, and am not sure of a fix for the pagination issue.  I’ve gotten around it by using physical templates where pagination is needed.  For example if I had a static page at /blog/archive, i would create a template group “blog” and template “archive”.  Then instead of using the Pages template you will see the physical template.  The only difference here is that you’ll have to hardcode the category ID into the {exp:weblog:entries /}

@mediagirl: see my above response first.  the default functionality of the extension is to show any physical templates first so if a template named archive exists within a group named blog you’ll see that actual template.  not the one defined on the configure tab.  If, however, you check override template, you’ll always see the template defined in the configure tab, over any physical templates.

 Signature 

================================================
    Mark Huot
    http://markhuot.com
================================================

Profile
 
 
Posted: 13 February 2007 06:07 PM   [ Ignore ]   [ # 366 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  222
Joined  08-07-2005

Thank you Mark for the explaination.

BTW: this is a wonderful module/extension/plugin!

 Signature 

Anna Brown ~ {MediaGirl} ~ {Portfolio}
Providing web programming services for creative agencies & designers.

Profile
 
 
Posted: 15 February 2007 07:23 AM   [ Ignore ]   [ # 367 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  106
Joined  07-15-2006

So I found this

Fixing your search results
—————————————————————————————
The links to your static pages on the search results page will break, you’ll need to wrap the following code around your search results template:

{exp:pages_results} {/exp:pages_results}

for example:

{exp:search:search_results switch="resultRowOne|resultRowTwo"}
    {exp
:pages_results}
        
<tr>
            <
td class="{switch}" width="20%" valign="top"><b><a href="{auto_path}">{title}</a></b></td>
            <
td class="{switch}" width="80%" valign="top">{excerpt}</td>
           </
tr>
        
{/exp:pages_results}
{
/exp:search:search_results}

here - thanks iain - fantastic effort.

But now I have a question.  I have looked through this thread, and I may have missed this, but I’m unclear how the search function is actually working.  I am doing a site for a drug rehab centre and have used this excellent module to build the site off.  It’s working great until I get to the search bit.  The words drug, rehabilitation and addiction occur on numerous pages, but searching on any of those words will only bring up a result if there is a page named with the search word.  There is a page called ‘rehabilitation’, so a search on ‘rehabilitation’ only pulls up a link to that page.

It seems like the search function is only looking at the category structure - is that correct, or have I just set something up wrong here?  Or do I need to use an external search function like Atomz.  I suspect that it’s an error on my part somewhere, but I can’t see it for the life of me.

Any insight much appreciated.

Andy

 Signature 

Don’t settle for existence

Profile
 
 
Posted: 15 February 2007 07:26 AM   [ Ignore ]   [ # 368 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  873
Joined  05-14-2004

In the search settings you can specify where EE will search. That should be the case with Static pages also.

Profile
 
 
Posted: 15 February 2007 07:38 AM   [ Ignore ]   [ # 369 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1194
Joined  01-05-2006

It’s actually defined per field so under Admin » Weblog Admin » Custom Fields you’ll want to set “Is this field searchable?” to “Yes”.  Do that for your static body field your search should then function as you expect.

 Signature 

================================================
    Mark Huot
    http://markhuot.com
================================================

Profile
 
 
Posted: 15 February 2007 07:40 AM   [ Ignore ]   [ # 370 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  873
Joined  05-14-2004

Of Course… I was thinking specifying which blog to search. Should have remembered the custom field setting.

Profile
 
 
Posted: 15 February 2007 07:46 AM   [ Ignore ]   [ # 371 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  106
Joined  07-15-2006

@David and @Mark - thanks.

I have now got it working, and it was my error.  I had turned on the searchable field when I set up the custom fields, but I hadn’t specified in my search form where to look.  As soon as I put “search_in=“entries” it all started to work. red face I thought it was probably something I hadn’t done, and so it was - thanks for your help guys.

BTW David - I ended up on your site from another thread when I was looking into the gallery module - very nice indeed!

 Signature 

Don’t settle for existence

Profile
 
 
Posted: 15 February 2007 07:51 AM   [ Ignore ]   [ # 372 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  873
Joined  05-14-2004

Cheers Andy, its a bit stagnant at the moment while i code a new far more complex site. *yikes*

Glad you got the search all working now.

Profile
 
 
Posted: 16 February 2007 10:58 PM   [ Ignore ]   [ # 373 ]  
Grad Student
Avatar
Rank
Total Posts:  70
Joined  05-06-2006

Hi Mark,

I think I have made a mistake somewhere along the line. One of my categories is ‘About Us’, and as you can see from the attached image I have not made it dynamic. Whenever I click on ‘About Us’ in the actual content tree it takes me to a new entry, instead of allowing me to edit the initial About Us entry.

That shouldn’t be happening should it? If they are not dynamic does it not take you to an edit screen to edit that entry? The About Us weblog isn’t the default weblog, but one selected from the dropdown box in your content pages configuration. does that make a difference?

I am really confused as I thought I had it working correctly. I had been so focused on getting the dynamic part of the static pages working (quite ironic), that I hadn’t checked the static side. Any advice is appreciated

thanks!

Image Attachments
static.gif
Click thumbnail to see full-size image
Profile
 
 
Posted: 17 February 2007 02:57 PM   [ Ignore ]   [ # 374 ]  
Summer Student
Total Posts:  20
Joined  02-10-2007

HI

I am try to get this pages module to work and failing…

I am new to EE so please bare with me if I am being stupid:

I have set up a weblog called static_content and have assign a category about to this entry and still cannot get it to show up oin the page.

Any ideas - code below:


{exp:weblog:entries weblog=“static_content” category=“about”}
<div class=“entry”>
<h2 class=“title”>{title}</h2>

{static_summary}


{static_txt}


{/exp:weblog:entries}

Thanks, Ann

Profile
 
 
Posted: 17 February 2007 03:25 PM   [ Ignore ]   [ # 375 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  183
Joined  03-21-2006

{exp:weblog:entries category="{static_page}"}
<div class="entry">
<
h2 class="title">{title}</h2>

{static_summary}

{static_txt}

{
/exp:weblog:entries}

Try that.

 Signature 

http://www.sethaldridge.com/

Profile
 
 
Posted: 17 February 2007 03:31 PM   [ Ignore ]   [ # 376 ]  
Summer Student
Total Posts:  20
Joined  02-10-2007

HI Seth

Thanks for your reply - I copied and pasted that code and it still did not work - do you think i have configured this incorrectly

Ann

Profile
 
 
Posted: 17 February 2007 03:45 PM   [ Ignore ]   [ # 377 ]  
Summer Student
Total Posts:  20
Joined  02-10-2007

Here is a screen dump of the configuration of the pages

Ann

Image Attachments
page.jpg
Click thumbnail to see full-size image
Profile
 
 
Posted: 18 February 2007 01:59 PM   [ Ignore ]   [ # 378 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1194
Joined  01-05-2006

@Gizmo: the current implementation of the custom weblog drop down converts the category to dynamic.  Is there a reason you need a new weblog for each category?  I’d try using the same weblog for all your static pages, it will standardize the fields across the board.  That said, I realize there are reasons to use different weblogs, and hope to allow “static custom weblogs” in a future version.

@annca: the category=”\d+” should be a number, not the name of the category.  If you’re hardcoding the categories, just switch about to “5”.  Or if you’re using a static page template switch about to “{static_page}”

 Signature 

================================================
    Mark Huot
    http://markhuot.com
================================================

Profile
 
 
   
21 of 27
21
 
‹‹ Solspace Tag Cloud      Files Module ››
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 66468 Total Logged-in Users: 37
Total Topics: 84863 Total Anonymous Users: 26
Total Replies: 455353 Total Guests: 179
Total Posts: 540216    
Members ( View Memberlist )