4 of 27
4
Tome (Static Pages)
Posted: 24 October 2006 09:36 AM   [ Ignore ]   [ # 55 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  224
Joined  04-28-2006

they are broken in both cases.

Profile
 
 
Posted: 24 October 2006 09:41 AM   [ Ignore ]   [ # 56 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1183
Joined  01-05-2006

Ok.  said your url looked like this:

http://www.host.be/index.php/This%20is%20the%20text%20that%20will%20appear%20on%20the%20first%20page

Can you figure out where “This is the text that will appear on the first page” is coming from?  Are there any categories named that?  Is that the title of any entries?  Is it in the content of any entries?  I’m asking because those words aren’t in the source anywhere so they must be coming from something you entered, hopefully we can figure out where.

 Signature 

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

Profile
 
 
Posted: 24 October 2006 09:46 AM   [ Ignore ]   [ # 57 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  224
Joined  04-28-2006

aaah right its one of the field descriptions i’ve enterd. But when i go back to my field set i see all field instructions are empty. But its one i had enterd.

Profile
 
 
Posted: 24 October 2006 09:49 AM   [ Ignore ]   [ # 58 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1183
Joined  01-05-2006

So now that it’s no longer in the instructions (for whatever reason) what do the view links look like?
Are you changing versions when you go from the remote server to the local server?

 Signature 

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

Profile
 
 
Posted: 24 October 2006 10:29 AM   [ Ignore ]   [ # 59 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  224
Joined  04-28-2006

Ok i’ve deleted everything i done before and started all over.
I almost got it to work now its linking me to the name of the categorie which i dont want i want it to link to the template. Or didt you design it so that the view links to the name of the cateogrie?

I included a picture to see for yourself.

Image Attachments
Afbeelding-1.png
Click thumbnail to see full-size image
Profile
 
 
Posted: 24 October 2006 11:09 AM   [ Ignore ]   [ # 60 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  224
Joined  04-28-2006

Ok right i started all over again.
And now the links are working but when i go to the link it send me a 404 i have included de debug info for you maybe you can see whats going on.
Here is the links: http://www.thisconnect.be/debuginfo.txt
Thanks in advance!!!!

Profile
 
 
Posted: 24 October 2006 11:54 AM   [ Ignore ]   [ # 61 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1183
Joined  01-05-2006

I think you’re a little confused about the purpose of the extension.  It should be linking you to the name of the category.  So for example, you have the category “homepage” so if you go to your site: index.php/homepage you should see the template you defined in the config page.  Also you’ll want to pick a default template (in your image you haven’t done that yet).

Here’s the intended method for working with this module/extension.

1. Create a new weblog to hold your static pages
2. Assign a category group mimicking your site structure, something like this:

About
—Contact
—Directions
Shipping
—Within the USA
—Outside the USA
—Carriers
——UPS
——FedEx
——DHL
Privacy Policy
Terms and Conditions

3. Create a template with the styles you will use for all of these static pages
4. In that template use the variable {static_page} to grab the proper entries {exp:weblog:entries category=”{static_page}” /}
4. In the Pages module configure the module to use the weblog you just created and the template you just created by default
5. In the module you can now edit entries in the selected weblog by just clicking on a category name.  Furthermore when you navigate to a category name (on the front end) you should see that static template you selected.  In that template the {exp:weblog:entries /} tag should be pulling from the category shown in the url.

Let me know if this makes sense and is how you expected the system to work.  If it is how you were working then I’m afraid I don’t understand your question.

 Signature 

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

Profile
 
 
Posted: 24 October 2006 02:48 PM   [ Ignore ]   [ # 62 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  224
Joined  04-28-2006

Ok right i think i got it but it just doesnt seem willing to work.
What have i done?
1. Uninstalled the module
2. Removed all the module files from the server.
3. Unzipped the zip and placed the module files back on the server.
4. Refreshed my modules pages and installed the pages module.
5. Created a new weblog : static pages
6. Created new categories who has two entries contact page and home
7. Created a new template called test
8. In that template i have put following code:

kevin
{exp
:weblog:entries category="{static_page}"}
{title}
{
/exp:weblog:entries}


9. Configure the pages module: i choose the satic pages weblog
10. Set the default template to test/index
11. Set the template for contact page to test/index
12. Set the template for home to test/index
13. Entered some info in contact page
14. I go to http://www.host.be/index.php/test/contact_page and the only thing i get to see is kevin (which i wrote).
15. Here is the debug :

(0.000065) - Begin Template Processing -
(0.001116) URI: /test/contact_page/
(0.001179) Path.php Template: /
(0.001258) Retrieving Template
(0.001328) Parsing Template URI
(0.014796) Determined Template: test/index
(0.014916) Retrieving Template from Database: test/index
(0.029856) Template Found
(0.032615) Retrieving Template from File
(0.034980) Template Type: webpage
(0.036042) Parse Date Format String Constants
(0.036166) Parsing Segment, Embed, and Global Vars Conditionals
(0.038496) - Beginning Tag Processing -
(0.038593) Parsing Tags in Template
(0.038725) Tag: {exp:weblog:entries category=”{static_page}
(0.039438) Closing Tag Found
(0.039800) Processing Tags
(0.040133) Module Tag: Weblog/entries
(0.040206) Including Files for Tag and Modules
(0.156094) Beginning Final Tag Data Processing
(0.156227) Calling Class/Method: Weblog/entries
(0.157048) -> Class Called: Weblog
(0.157424) -> Method Called: entries
(0.197811) -> Data Returned
(0.198202) - End Tag Processing -
(0.198453) - End Template Processing -
(0.198496) Parse Global Variables
(0.206456) Template Parsing Finished

Also when i do {static_page} it just displays {static_page}. I really dont understand what iam doing wrong or missing?

Thanks in advance for trying to help me.

Profile
 
 
Posted: 24 October 2006 02:53 PM   [ Ignore ]   [ # 63 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1183
Joined  01-05-2006

ok, so then it’s loading the correct page (evident by “kevin” showing up).  however it’s not pulling the proper category.  try going to this page: http://www.host.be/index.php/contact_page, notice no “test”.  There is no test because “contact page” does not have a parent.  The url structure exactly mirrors the categories.  so if “contact page” is a top level category then in your url it would also be top level: index.php/contact_page

 Signature 

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

Profile
 
 
Posted: 24 October 2006 03:01 PM   [ Ignore ]   [ # 64 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  224
Joined  04-28-2006

ok when i do that it goes the page that i have set up to be the 404 page.

Can i ask do you have msn or aol or something might be a litle easyer then me spamming the whole forum smile ?

Profile
 
 
Posted: 24 October 2006 03:20 PM   [ Ignore ]   [ # 65 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  224
Joined  04-28-2006

ok right that was an easy one. I have forgotten to enable extensions.
So if you ever run into this problem be sure to check the following :
admin > utilities > extension manager and enable everything!

Thanks again mark for the help and great module.

Profile
 
 
Posted: 24 October 2006 04:48 PM   [ Ignore ]   [ # 66 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  276
Joined  06-12-2002

Yeah, i had the same problem. Definitely might want to stick a reminder in the notes at the top of the thread, Mark!

Profile
 
 
Posted: 25 October 2006 02:17 AM   [ Ignore ]   [ # 67 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  224
Joined  04-28-2006

hey mark,

an other question my site is multi lingual. What i do is give /nl or /en along in my url. But when i do this for the static pages it goes to my 404 page. I would need the following index.php/contact_page/nl
is there any way of doing this?
If not am i forced to make a category for each language?

Greetings kevin,

Profile
 
 
Posted: 25 October 2006 07:56 AM   [ Ignore ]   [ # 68 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1183
Joined  01-05-2006

I’ve updated the extension to 2.2.1 which fixes some bugs with how the templates are determined.  You should now be able to go to /this/that/nl and it will use the “that” category (assuming it even is a category).  Grab it at the top of this thread.

 Signature 

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

Profile
 
 
Posted: 25 October 2006 08:07 AM   [ Ignore ]   [ # 69 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  224
Joined  04-28-2006

mark this sounds great let me try it out!!!

*EDIT*
works fine thanks allot man!

Profile
 
 
Posted: 25 October 2006 08:42 AM   [ Ignore ]   [ # 70 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  224
Joined  04-28-2006

hey mark,

on this static pages it is still possible to use other weblogs right?
i have this on a page it shows everything untill the other weblog starts any idea?
ps: sorry for asking so many questions :$

<?
$languages
= array("nl","en");

$curln = substr(trim($_SERVER['PHP_SELF']),strlen($_SERVER['PHP_SELF'])-3,3);
if(
$curln == "/en" || $curln =="/nl"){
    $aln
= $curln;
}else{
    $aln
= "";
}
switch ($aln)
{
case "/en":
$lang="en";
break;

default :
$lang="nl";
}
?>
{embed
="home/head" mylang="<? echo $lang; ?>"}
<body id="b000" onload="checkTab();">
<
div id="bg">
    <
div id="headerbox01_bg">&nbsp;</div>
    <
div id="headerbox02_bg">&nbsp;</div>
</
div>

<
div id="site"><!-- begin whole site -->

{embed="home/header" mylang="<? echo $lang; ?>"}

<!-- ############# content  ############# -->

<div id="content"><!-- begin content -->
        <
div id="contentboxleft"><!-- begin contentboxleft -->
    
    
{embed="home/breadcrumbs" mylang="<? echo $lang; ?>"}
<div class="box01" style="width: 240px;">    
        
{exp:weblog:entries category="{static_page}"}
<h2>{cp_title_<? echo $lang ?>}</h2>
<
p>{cp_content_<? echo $lang ?>}</p>
{/exp:weblog:entries}     
</div>
        <
div class="box01" style="width: 240px;">    
            <
h3>Latest news</h3>
            <
dl>
                
{exp:weblog:entries limit="5" weblog="news" orderby="date"}
                {if title_<?
echo $lang; ?> != ""}
                    
<dt><a href="{title_permalink="news/news_detail"}<? echo $lang; ?>">{title_<? echo $lang; ?>}</a></dt>
                    <
dd>{summary_<?echo $lang;?>}</dd>
                
{if:else}
                    <?
                    
for($i = 0; $i < sizeof($languages); ++$i){
                        
if($languages[$i] != $lang){
                        ?>
                            {if title_<?echo $languages[$i]
;?> !=""}
                                
<dt><a href="{title_permalink="news/news_detail"}<? echo $lang; ?>">{title_<? echo $languages[$i]; ?>}</a></dt>
                                <
dd>{summary_<?echo $languages[$i];?>}</dd>
                                
<?$i = sizeof($languages);?>
                            {
/if}
                        <?
                        }
                    }
                    ?>
                {
/if}
                                
                {
/exp:weblog:entries}
            
</dl>
        </
div>
        
    </
div><!-- end contentboxleft -->
    
{embed="home/contentboxcenter" mylang="<? echo $lang; ?>"}
    
{embed
="home/contentboxright" mylang="<? echo $lang; ?>"}
</div><!-- end content -->
{embed="home/footer" mylang="<? echo $lang; ?>"}

Profile
 
 
Posted: 26 October 2006 01:01 PM   [ Ignore ]   [ # 71 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  233
Joined  01-18-2006

Sorry, I don’t mean to hijack the current question—I just wanted to follow up on using search in conjunction with static pages.

EDIT

Ok, I’m using a static template now. But I still can’t figure out how to get the search result urls to show up properly. Right now, I’m using the following code in my search results template:

<a href="{auto_path}">{title}</a>

which will give me

<a href="http://example.com/index.php/article_title/">Article Title</a>

So, can I get the url to display the way they do within the Pages module (when you click “View”)?

<a href="http://example.com/index.php/parent_category/child_category/">Article Title</a>

meh.

 Signature 

Eric Barstad
Shadow Box Creative Media Ltd.

EE Pro Network

Profile
 
 
Posted: 26 October 2006 10:02 PM   [ Ignore ]   [ # 72 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1183
Joined  01-05-2006

goeminnek: hopefully some pMachine people can chime in but I don’t think you can nest {exp:weblog:entries /} tags like that.  You may want to try it on another page (not apart of my module) and see if it works with two hardcoded categories.

ebarstad: I will look into the search module.  currently it shouldn’t work because the url structure is so different from what EE would expect.  I’ll have to adapt the extension to handle search results.  that will take a little bit of time, but i’ll let you know when it’s done.  for now I would think you could use the {exp:weblog:entries /} tag with the {categories /} tag to somehow get the proper url, but that’s a hack at best.

 Signature 

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

Profile
 
 
   
4 of 27
4
 
‹‹ 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: 64883 Total Logged-in Users: 62
Total Topics: 81811 Total Anonymous Users: 38
Total Replies: 439804 Total Guests: 332
Total Posts: 521615    
Members ( View Memberlist )
Newest Members:  Hotcards.comShrike67Dynamic1justingpticketjendicottdxrsmdanbilly8hrkiliwysso