Share » Forums » Developer » standalone files, e.g. search forms

standalone files, e.g. search forms

standalone files, e.g. search forms

Friday 23 April 2004 3:01:53 am - 6 replies

Author Message

Eirik Alfstad Johansen

Friday 23 April 2004 3:17:20 am

Hi Rinze,

Not sure if I understand what you're trying to do? If you need to display the sitemap as a part of your site design, why not just use content/view/sitemap/2 for the desired siteaccess?

Sincerely,

Eirik Johansen
http://www.netmaking.no/

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

Rinze Cats

Friday 23 April 2004 3:31:59 am

hi and thanx for the quick reply. I guess my problem is best described as follows..

where do I put the template code which I can find in content/view/sitemap/2?

Let's say i create my own sitemap.tpl using this code, what do I assign the template to ?

Eirik Alfstad Johansen

Friday 23 April 2004 3:44:26 am

Hi Rinze,

A quick 'n' dirty solution would be to create a new object of any class and then make a node-specific override template. Another, approach is to create an extension with a separate view. It depends on your needs.

Sincerely,

Eirik Johansen
http://www.netmaking.no/

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

Rinze Cats

Friday 23 April 2004 3:55:03 am

is there no standard solution for this. It isn't anything strange what I am trying to do here is it?

let's take a search form for instance. the website should present a search form.
There is no class I need to use so a site editor could create a search form instance.

I create a folder named seach form and in this folder I want to 'create' the form, which consists of only template code.

Your quick and dirty sollution occured to me as well. I could create a class with no fields fos instance, and put my code in a template for this class. However, a standard sollution must be at hand. everybody has these funcitonalities in their sites!

Rinze Cats

Friday 23 April 2004 3:56:42 am

btw, I'm not sure on how to implement the extension sollution you are suggesting, but I can tell you my needs are very basic ;-)

Dominik Pich

Friday 23 April 2004 5:56:15 pm

For many occasions there is only a view... only a template. No contentobject.
e.g. for searches, for the basket, for the sitemap.......

Just use that view. modify it to your needs

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu