The Artima Developer Community
Sponsored Link

PHP Buzz Forum
Improved Section Naming Coming Soon

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Forum One

Posts: 118
Nickname: forumone
Registered: Sep, 2004

Forum One is consulting firm specializing in helping non-profits improve their online presence.
Improved Section Naming Coming Soon Posted: Dec 18, 2004 9:18 PM
Reply to this message Reply

This post originated from an RSS feed registered with PHP Buzz by Forum One.
Original Post: Improved Section Naming Coming Soon
Feed Title: Syntax Framework
Feed URL: http://blog.syntaxcms.org/rss.php?version=0.91
Feed Description: Finally, a place to answer Syntax questions
Latest PHP Buzz Posts
Latest PHP Buzz Posts by Forum One
Latest Posts From Syntax Framework

Advertisement

In anticipation of a 1.2.0 version of Syntax CMS, we have checked in an upgrade to how Sections work.

Previously, every section had to have a unique URL ID. This meant if you had a series of top level sections like "Marketing", "Tech," and "Consulting", you couldn't have "/marketing/about/" and "/consulting/about/" simultaneously. We had to resort toURIs like "/marketing/about_marketing/" or "/consulting/about_consulting/".

If you check out the latest CVS files, however, you can have "/marketing/about/" and "/consulting/about/". The only restriction, invisible to the user, is that you can't have two sections with the URL ID "about" under the same section...i.e., you can't have two sections with the URI "/marketing/about/". Now Syntax CMS will handle this case by creating "/marketing/about/" and "/marketing/about1/"...and "marketing/about2/" and "/marketing/about3/" and so on, as needed.

If you're upgrading, bear in mind it does require a database upgrade. Anything that relies on the assumption that a section's URL ID will be unique may break. However, anything using the standard SectionNavigator classes should still work unless you are passing a URL ID for any reason (these should now be the full URL path, which actually includes the URL IDs of every section from the top-level section down to the current section).

Affected files include:

/private/lib/syntaxcms/F1CMS.class.php
/private/lib/syntaxcms/functions.lib.php
/private/lib/syntaxcms/Section.class.php
/private/lib/syntaxcms/SectionNavigator.php
/private/lib/syntaxcms/SectionNavigatorOptimized.php
/private/lib/syntaxcms/Site.class.php
/private/lib/syntaxcms/Request/SectionRequest.class.php
/private/lib/ext/PxDB/classes/content/input/pxdb_commit.php
/private/lib/ext/PxDB/classes/events/pxdb_event_dispatcher.class.php
/private/lib/ext/PxDB/events/syntax_section_handler.class.php
/private/lib/ext/PxDB/config/initialize.php
/private/lib/ext/PxDB/config/install/mysql-upgrade.php
/public/admin/db.php
/public/admin/modules/navigation/lib.php

Read: Improved Section Naming Coming Soon

Topic: Savant Article in PHP-Mag Previous Topic   Next Topic Topic: Default Record privileges

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use