Problems, need help? Have a tip or advice? Post it here.
28 posts Page 3 of 3
Ok im getting a code error.

Heres my Orignal path and code
<?php include("../includes/nav.html"); ?>

which on a normal page would work. So ive done that and wrapped around the cms php tags.

Now ive tryed it like this
<?php include("includes/nav.html"); ?>
No joy.

and then like this
<cms:php> <?php include("../includes/nav.html"); ?> </cms:php>
No joy

heres the message
Parse error: syntax error, unexpected '<' in /home/nottingh/public_html/couch/tags.php(1725) on line 1
Hi Simon,

You don't have to give the php opening or closing tags, only the code.
You should write it as -
Code: Select all
<cms:php> include("../includes/nav.html"); </cms:php>

Try it and let me know.
KK wrote: Hi Simon,

You don't have to give the php opening or closing tags, only the code.
You should write it as -
Code: Select all
<cms:php> include("../includes/nav.html"); </cms:php>

Try it and let me know.


That worked mate thankyou :) websites coming along nicely now dude :)
i want something that is like the function of the blogs_list.php and blog.php

But i want to add a new item to a page, so it lists like the blogs_list page, but not forward to a blog.php page, so when we add a new item, it only goes into the blog_list.php page.

What the page will do is so:
we allow car clubs to email us with there link, in return we offer a logo so they can advertise us, so then we would use the CMS to add a new link www.yoursite.com which would then direct to the website rather than the blog.php page, so this means we can then add new items each time and they list within the blog_list.php page.. can this be done without having the blog.php page? as itll be a waste of space because it'll only hold just a link..

??
Hi Simon,

One way to proceed could be this -
Create a template named 'links.php'. Make it clonable and define a single editable region of type 'text' within it e.g.
<cms:editable name='member_link' />
This field will hold the link to the external site (e.g. http://www.somesite.com) while the 'Title' field present within every clonable page can contain the name of the site (e.g Acme International). You can create more editable regions if you wish to capture some more data about your members.

Declare this template non-executable (add 'executable='0' in its 'template' tag). By doing this we will disallow the cloned pages of this template to be accessed as discrete URLs (e.g. http://www.yoursite.com/link/). We only wish to use this template to allow us to input data (the links) into it. We'll display the data contained in those pages on some other template.

Add the links of your members by creating one page for each member and filling in the 'title' and 'member_link' fields.

Having done this, it is now trivial to list these links on any existing template by using the regular 'pages' tag. For example, we can list these links on your home page (template index.php) by using the following code -
Code: Select all
<h2>Our Members</h2>
<cms:pages masterpage='links.php'>
    <a href="<cms:show member_link />" ><cms:show k_page_title /></a> 
</cms:pages>


Hope this helps. Do let me know.
im getting this

ERROR! Closing tag "editable" has no matching opening tag (line: 165 char: 5269)
ignore the above and focus here,

Ok ive got it working now, apart from one problem, when i place the link in the editable area, no problems, but when i want the link to goto lets say www.google.co.uk it goes to.

Code: Select all
http://www.revlimitmag.com/www.google.co.uk
ignore everything ive said, it works now..

I'm getting good at not only doing this, but working it out when it dont work :lol:

thanks dude

heres what it looks like incase you are wondering
:lol: http://www.revlimitmag.com/weblinks.php
28 posts Page 3 of 3
cron