English English Spanish EspañolKorea한국어
Straker»Company»Blog»2005» Missing code that creates SSURL for pages

Missing code that creates SSURL for pages

This blog post is for people who are having problems with issue SMX-1697: the fact that the shado_obj_pages.add() method does not create the search-engine-safe URLs when the rest of the page record is created. Here's what I told the client who originally noticed this: We've scheduled to fix the fact the search-engine safe URLs don't get created by the add() method, but that's not going to help you short term. Currently the code to create them is done on the "add page" action CFM template (duh). But, this is the code wot gets run:
// circuit_uuid is the uuid of the section the page is within; page_name is the page's name (NB: not title: name); uuid is the page_uuid
bcs = application.shado_obj_factory.get("shadomx.core.sections.buildtree").getSSURL(circuit_uuid=attributes.circuit_uuid, page_name=attributes.page_name,page_uuid=attributes.uuid);
application.shado_obj_factory.get("shadomx.core.pages.shado_obj_pages").update(body=bcs,page_ssurl=bcs,andExprList="uuid = '#attributes.uuid#' and lang = '#application.shado.languageService.getLanguageCode()#'");
Make sense? If not, sing out! Hopefully that will get you moving ahead whilst Shado plays catch-up.


Comments

There are no comments for this page as yet.

Add a comment