Glad I could help :) For anyone else reading this: when changing templates (names/content) it's easy to forget about updating the metadata as well, since you cannot simply view it like that. For a single page it's easy to delete/recreate it, but if you need to update a few hundred, maybe even thousands of pages, you will either have to write a groovy script or a java task (update or installation) for your module that has a visitor which updates the old metadata. I described this in a previous thread here as well: http://forum.magnolia-cms.com/forum/thread.html?threadId=eb16ef72-7402-4b9d-a549-dbcfd5d32095
Also, if you simply want to change the search page for a site to a new name, you can change this on the home page of the site. Click on "Page Info" and change the "Search Page" entry to your new page. http://imgur.com/J6U51 Cheers On Feb 7, 2012, at 10:19 AM, Jon RINGWOOD PSE 55500 wrote: > Natascha, you're a genius. > > I exported the page to xml and although it did have the correct template set > the main area was still using the old stk template. So I deleted the page, > recreated it and it all works as expected now. I'll remember to export and > check xml if I get any future issues with templates. Thanks so much for your > help, most appreciated. > > Jon > > >>> On 07/02/12 at 08:49, Natascha Desmarais > >>> <[email protected]> wrote: > Could you export your custom search result page to xml (tools > jcr browser > [website]) and see if it actually saves it with the correct mgnl:template? It > really does sound a little fishy that it refuses to take the correct > paragraph/template, because the model should only contain the logic, but not > the path to the script. > > On Feb 7, 2012, at 9:40 AM, Jon RINGWOOD PSE 55500 wrote: > >> Thanks Natascha, yes I've changed the autoGeneratedParagraph in my template >> to look at my new paragraph. Just wondered if there was anything in the >> search model that was hard-coded to look at the default search-results >> script. Don't understand why it's happening. The only way I can get it to >> work is to actually change the stk script which I really didn't want to do. >> > > > > ---------------------------------------------------------------- > For list details, see http://www.magnolia-cms.com/community/mailing-lists.html > Alternatively, use our forums: http://forum.magnolia-cms.com/ > To unsubscribe, E-mail to: <[email protected]> > ---------------------------------------------------------------- > > > ---------------------------------------------------------------- > For list details, see http://www.magnolia-cms.com/community/mailing-lists.html > Alternatively, use our forums: http://forum.magnolia-cms.com/ > To unsubscribe, E-mail to: <[email protected]> > ---------------------------------------------------------------- ---------------------------------------------------------------- For list details, see http://www.magnolia-cms.com/community/mailing-lists.html Alternatively, use our forums: http://forum.magnolia-cms.com/ To unsubscribe, E-mail to: <[email protected]> ----------------------------------------------------------------
