show content in other then the main table

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Pappnase

Re: Can't get the original topic (right panel) to work

Post by Pappnase »

jsw_nz wrote:I am wondering why I cannot get Pappnase's original topic of creating content for the right section of a given page to work. Spent a considerable amount of time and likely it is something I am overlooking. BTW, I gave Spirou's hack a go, but found, like others, the upgrade (I think it was RC2 to RC3) confounded it. So I thought the original post by Pappnase based on his method might work. I believe I have done everything to prescripion:

"Create a blank pagelayout size all blocks 150 and the main block also 150. all others set to 0" //two parameters inputed: all blocks: 172, main 172, all others 0 in my case

"create an template leave all exept the main block put there the {content} replacement tag inside." simple ...did this {CONTENT}

"create a hidden sitestructure set it to visible and public. also give an alias and choose for this the "blank" template." //did this, in my case community

"get in your template where you wanna show these content an place in the "right" {PHP:http://www.domain.com/index.php?alias}

//did this within my index page template with right section at a width of 172, there i put this code:

version 1: {PHP:http://localhost/phpwcms2/index.php?community}
version 2: {PHP:index.php?community}

Neither work as called from within the template. I am working off my local box, thus the localhost prefix.

BTW: entering this in my browser:
****//localhost/phpwcms2/index.php?community
works like a charm
also have run other {PHP:script.php} instances successfully
I also created a custom page community_1.php
and run {PHP:community_1.php} successfully

I am wondering why this is not working and wanted to ask if others (including Pappanase himself) if they have gotten this elegant gem to work in RC4. I am wondering if header info generated by the template by default does not get truncated. I think Oliver's code takes care of this. The source code of the standalone page **** (see above) includes header info, with a call to frontend.css, and default <body tags> At the end of the day, what would be compatible, it would seem, would be the <table><tr><td> content only.

Code: Select all

<td valign="top"></td>
<td valign="top" width="172"><a name="jump7"></a><br><img src="img/leer.gif" width="1" height="5" alt="" /><br /><div class="articleSummary">Part of the really new initiatives of the Sport Otago web site will be a new community profile section that will highlight how sports life in the region has been enhanced and enriched</div><br><img src="img/leer.gif" width="1" height="8" alt="" /></td>
<td valign="top"></td>


Would love to get this running....as a reasonable way to populate the right area on a given page. Any suggestions/pointers would be apreciated.

cheers,
jsw
hello

i will test my solution today with the new release!
User avatar
jsw_nz
Posts: 907
Joined: Fri 2. Apr 2004, 02:42
Location: New Zealand

Cheers Pappnase

Post by jsw_nz »

Hi Pappnase.....

BTW, I just read your very recent post a few minutes ago commenting on Oliver's new template system....pointing out it's potential capabilities. I must say, the system is getting better and better....very interesting. Thanks for making it clearer to me.

With regards to your cool method, i have given it a pretty complete try, but then again I may be missing something. This feature would be perfect for a project at hand....a (permanent) sidebar introduction that would be updated on a monthly basis.

Cheers,
jsw
Pappnase

Post by Pappnase »

hello

you can call the site via the php tag! it's a little crazy but without change this settings it won't work!
but first you need to enable the line 45 in the conf.inc.php

Code: Select all

$phpwcms["allow_remote_URL"]  = 1;  //0 = no remote URL in {PHP:...} replacement tag allowed, 1 = allowed
now i played a little around! i try to create an news area! the problem is the more link does not work. cos the articles are add to the blank template so i usw now a litte java and get the whole article in a pop up.

as you can see at http://test.fhss.de
User avatar
jsw_nz
Posts: 907
Joined: Fri 2. Apr 2004, 02:42
Location: New Zealand

THANKS Pappnase

Post by jsw_nz »

Pappnase,

Works like a charm now.

Thanks for your pointers / Viele Danke!
Pappnase

Post by Pappnase »

hello

so once again and last!*gg

you can disable the line 45 in the conf.inc.php to use my solution.

and replace the

Code: Select all

{PHP:xxx} Tag by {URL:htt://www.tld.ext/file.xx}
and it will work.

but you need first to upload the little patch from oliver!

http://www.phpwcms.de/forum/viewtopic.p ... c&start=15
Pappnase

Post by Pappnase »

zobmaster wrote:as an answer to myself : your stupid!!!
I messed around so much with the replacement tag that it just could'nt work.
Now everything's ok

thanks for the hint! i almost work 1/2 H.
hello

this could happen
for the future if you see these something between this { } than you know this is an replacement tag! :wink: :lol: :D

hope you don't m issunderstand me! should be only a joke!
User avatar
isac
Posts: 410
Joined: Tue 18. Nov 2003, 13:13
Location: Portugal
Contact:

Post by isac »

Hi people,

Does this work with latest release?

Thanks
Isac.
Pappnase

Post by Pappnase »

hello

yes! :lol:
Pappnase

Post by Pappnase »

hello

once again me! i please all who use this solution to use the {URL:xxx} tag cos the [PHP:xxx} tag can cause an error. cos the url tag reads only the source between the body the php does this not!
Peekay
Posts: 286
Joined: Sun 25. Jul 2004, 23:24
Location: UK

Post by Peekay »

For regular articles, (not PHP) you don't need to change the PHPWCMS settings at all to make Pappnase's nice extra-content solution to work. The example below creates a sidebar with editable content. I used DIVs in the 'main' section to build the template. May also work using the left, right, footer page layout. Use whatever names you want.

1) Create a new page layout

Layout Name: 'sidebar_layout'
leave all settings at their default except...
Rendering: Custom (from template main block)

2) Create a new template

Name: 'blank_sidebar_template'
Layout: 'sidebar_layout'
Leave all the sections completely empty.

3) Create a new site category called 'Sidebar Content'.
In the category setup screen:

Under 'Frontend Menu Status' tick the 'hide' checkbox.
In the 'alias this category' field enter 'sidebar' (lower case).
In the 'Template' field enter 'blank_sidebar_template'
In the 'Top Article Count' field enter -1 (one article displayed only).
Ensure the 'Visible' and 'Public' checkboxes are ticked.

4) Create another new template

Name: 'news_with_sidebar_template'
Layout: 'sidebar_layout'

In the 'Main' section, place two DIVs (remember you can build your whole template here if you want)

Code: Select all

<div id="contentlayer" style="position:absolute; width:380px; z-index:4; left:200; top:150">{CONTENT}</div>

<div id="sidebarlayer" style="position:absolute; width:150px; z-index:5; left:580; top:150">{URL:http://your_site.com/phpwcms_dir/index.php?sidebar}</div>
5) Create a site category called 'News with Sidebar'

In the category setup screen:

In the 'Template' field enter 'news_with_sidebar_template'
Ensure the 'Visible' and 'Public' checkboxes are ticked.

6) Add your sidebar article (just one*) under the 'Sidebar Content' category.

7) Add your regular article(s) under the 'News with Sidebar' category.

*If you add more than one article under the sidebar category, a summary is created with a 'more...' link. Clicking this link opens the full article using the blank template, which doesn't work. You can however add content-parts to the sidebar article, including article-links. Clicking these links will open articles correctly in their respective categories.

Cool :D
richk
Posts: 24
Joined: Sun 24. Oct 2004, 03:24

Post by richk »

I followed all the instructions but seem to have a problem with this one

5. get in your template where you wanna show these content an place in the "right" {PHP:http://www.domain.com/index.php?alias}

I have inserted this in the "right" box of my default template but nothing shows up in my right column. The alias name I used was rhe word right.

If I go to http://www.amsalescentral.com/phpwcms/index.php?right
I can see the text I want in my right column, but if I go to
http://www.amsalescentral.com/phpwcms/index.php? it is not there.

Any ideas?

Rich
User avatar
isac
Posts: 410
Joined: Tue 18. Nov 2003, 13:13
Location: Portugal
Contact:

Post by isac »

don´t use {PHP:...} use instead {URL:...} because if you look to source code you see two body tag and that works very bad.

go to inlude/inc_conf/conf.inc.php and set option to 1 (line 46)

Code: Select all

$phpwcms["allow_remote_URL"]  = 0;  //0 = no remote URL in {PHP:...} replacement tag allowed, 1 = allowed
Cumps,
Isac.
theplinth
Posts: 16
Joined: Sun 7. Mar 2004, 10:47

Post by theplinth »

I've followed all your instruction diligently and still i get NOTHING! Why? I've been using the {URL:xxx} tag, I've got the remote URL set to '1' in the conf file. I've tryed pages from my site... pages from antoher site... even google.com. Its just sowing blank... nothing... the rest of the page shows up fine? Is there something I am missing? I am using the latest version.
Post Reply