Ezurl mod

Author Message

luis muñoz

Thursday 18 January 2007 3:56:36 am

Hi,

How can i modify ezurl operator and system generated urls to use "-" instead of "_"?

i.e. show developer-forum in the url instead of developer_forum.

And the other part of the question is how can i make the system redo all the system generated urls? Just deleting empty tables and make a script to redo the urls?

Thanks,

Luis

kracker (the)

Thursday 18 January 2007 4:04:20 am

This subject was briefly covered recently and while the thread is a longer read with a lot of parts worth skipping, it still does leave a trail of the key clues to use as a basis of a solution, which <i>can</i> meet your needs.
<i>http://ez.no/community/forum/install_configuration/is_it_possible_to_browse_by_node_id</i>

Though when you think about it. What we really need to come from these threads is an extension containing patches against 3.9 and svn trunk which provide for these changes in a more graceful / example way. So people how wish to hack this feature of the kernel can do so without having to repeat so much duplicate work each time, no?

It seems baffling that so many eZ publish users seem to avoid this level of development at times. Is it lack of examples, perhaps but I don't believe it is as much anymore ... The community has really flourished in the last few years.

Well back to the wakeup call, it really is 2007, if you want to do something you don't see already laid out for you to use perfectly with others making it happen in front of your eyes. You have a possibly difficult choice ... give in, give up, give out or adapt and push your self to the next level, *anyone can do this* your going to have to accept that you will have to put in time creating by hand the components or modifications to stock eZ publish usually including but not limited to template changes, settings changes, knowledge of the kernel/ an lib/ directories or ability / time to spend studying up to form a basis from which you can start modifying eZ to provide for the features you need (working within eZ instead of outside it).

Meaning eventually `the edge` is found in the kernel, even if you only write an extension your using just one of many parts which provide for it. eZ publish kernel and lib hacking in PHP (and it gets detailed at times) is where you must turn when eZ simply does not provide or gets in the way of your feature request/need. I'm all for kernel hacking :)

More people should learn it's merits, responsibilities and very tempting possibilities ...
Looking forward to a book one day sounding something like ... 'eZ publish Kernel Hacking - For profit and fun!'

<i>//kracker
come on eve-ry-bod-y!

KoRn - Ya'll Want a Single? Right Now?</i>

Member since: 2001.07.13 || http://ezpedia.se7enx.com/

kracker (the)

Thursday 18 January 2007 5:00:21 am

Ahh! Here are a few other useful and related area of code mentioned in another thread,
<i>http://ez.no/community/forum/developer/change_the_url_uri_separator
http://ez.no/community/forum/setup_design/how_to_manualy_change_the_url_alias
</i>

An don't forget you'll prolly need to regenerate your nice urls via ( 'update/common/scripts/updateniceurls.php' ) cli script :)

<i>//kracker

KorRn - A.D.I.D.A.eZ.</i>

Member since: 2001.07.13 || http://ezpedia.se7enx.com/

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 18 2025 18:24:56
Script start
Timing: Jan 18 2025 18:24:56
Module start 'layout'
Timing: Jan 18 2025 18:24:56
Module start 'content'
Timing: Jan 18 2025 18:24:57
Module end 'content'
Timing: Jan 18 2025 18:24:57
Script end

Main resources:

Total runtime0.8052 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0094 589.9531152.6094
Module start 'layout' 0.00940.0033 742.562539.3984
Module start 'content' 0.01270.7907 781.9609546.1250
Module end 'content' 0.80340.0018 1,328.085912.2031
Script end 0.8051  1,340.2891 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.4160160.0002
Check MTime0.00140.1719160.0001
Mysql Total
Database connection0.00120.146110.0012
Mysqli_queries0.745692.5959570.0131
Looping result0.00060.0725550.0000
Template Total0.765895.120.3829
Template load0.00220.274720.0011
Template processing0.763694.833320.3818
Template load and register function0.00020.027310.0002
states
state_id_array0.00180.227610.0018
state_identifier_array0.00120.147420.0006
Override
Cache load0.00190.2312310.0001
Sytem overhead
Fetch class attribute can translate value0.00120.148620.0006
Fetch class attribute name0.00130.166740.0003
XML
Image XML parsing0.00100.126020.0005
class_abstraction
Instantiating content class attribute0.00000.001750.0000
General
dbfile0.00100.1234180.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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 16
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs