Sunday 11 September 2005 7:14:51 pm
Hi James, The way Lukasz is mentioning I believe should work in any ezpublish implementation. Its just fetching the attribute from an object and displaying that attribute in the search form.
I normally do things like what you are asking in a similar manner (and is possibly less clean than Lukasz suggestion), but I dont normally create a custom class. Typically I will:
Override a folder to display the page, such as the search form. I will however put text like your "search tips" in the description field of the folder. Then in my new template (the custom search.tpl) I can fetch the folder and display the description field in the template. That way, the editor can change the text without any updates being required of the templates. Hope thats of some help. Arran
|