Change Blog Post URL structure

Author Message

Davide Salerno

Tuesday 19 October 2010 5:32:14 am

I'm a very newbie with eZ and I think that my question could be very very stupid.

I'd like to change the blog posts permalink structure from http://www.website.ext/blog/post-title to something like http://www.website.ext/blog/YYYY/MM/post-title

I tried to do this working with "Url alias name pattern" but I wasn't able to do that.

What is it the best way to do that? Create an extension, change some settings or working with datatype (for example create a custom Date type for url) and Url alias name patterns?

Thanks a lot and excuse me for my English

;-)

Heath

Tuesday 19 October 2010 8:25:39 am

Hello Davide,

Welcome to the eZ Publish Community!

If I needed that url pattern. I would create a folder at the root of the content tree called '2010' and within that folders for each month. Within the month folders I would create and publish articles as needed.

Cheers,

Heath

Brookins Consulting | http://brookinsconsulting.com/
Certified | http://auth.ez.no/certification/verify/380350
Solutions | http://projects.ez.no/users/community/brookins_consulting
eZpedia community documentation project | http://ezpedia.org

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 30 2025 22:22:59
Script start
Timing: Jan 30 2025 22:22:59
Module start 'layout'
Timing: Jan 30 2025 22:22:59
Module start 'content'
Timing: Jan 30 2025 22:23:00
Module end 'content'
Timing: Jan 30 2025 22:23:00
Script end

Main resources:

Total runtime1.1466 sec
Peak memory usage8,192.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0042 588.1250151.2109
Module start 'layout' 0.00420.0045 739.3359220.6953
Module start 'content' 0.00871.1369 960.03134,427.9922
Module end 'content' 1.14570.0009 5,388.02347.8516
Script end 1.1465  5,395.8750 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.2891160.0002
Check MTime0.00130.1112160.0001
Mysql Total
Database connection0.00050.044010.0005
Mysqli_queries1.068293.1662540.0198
Looping result0.00060.0481520.0000
Template Total1.088694.920.5443
Template load0.00200.176220.0010
Template processing1.086694.766320.5433
Template load and register function0.00130.109810.0013
states
state_id_array0.00150.130910.0015
state_identifier_array0.00220.192720.0011
Override
Cache load0.00170.1441160.0001
Sytem overhead
Fetch class attribute can translate value0.00190.162420.0009
Fetch class attribute name0.00200.174930.0007
XML
Image XML parsing0.00070.059720.0003
class_abstraction
Instantiating content class attribute0.00000.000930.0000
General
dbfile0.00230.2011170.0001
String conversion0.00000.000940.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 7
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs