URL rewirting & /content/action(NewButton)

Author Message

Rémy Limouzin

Wednesday 14 November 2007 1:11:36 am

<i>URL rewirting & /content/action(NewButton)</i>

Hello eZAdict ^^

I have a little problem with my site in eZPublish. (www.no referencing.com) (<i>EDIT 2007-11-15</i>)

I actually have a form for register an 'Atelier' but i accede to this page via a formulaire look like that :

<form name="atelier" method="post" action="/content/action">
<input name="ClassID" value="47" type="hidden">
<input name="ContentLanguageCode" value="fre-FR" type="hidden">
<input name="ContentObjectLanguageCode" value="fre-FR" type="hidden">
<input name="ContentObjectID" value="218" type="hidden">
<input name="NodeID" value="218" type="hidden">
<input name="ContentNodeID" value="218" type="hidden">
<input class="button" name="NewButton" value="Déposer un fichier" type="hidden">
</form>

An this form was send by some link in my page using a javascrit

<a href="#" onclick="javascript:document.atelier.submit();">
Créer un atelier
</a>

in result i have my page with an URL like :
http://www.ambeli.com/content/edit/749/1

And i need to have an URL like :
http://www.ambeli.com/atelier_creation

You can see all this at www.ambeli.com and click on 'Atelier' at the bottom of the page.

Thanks for all. :-)

Heath

Wednesday 14 November 2007 3:20:42 am

Sorry but no.... While in part I do like your idea
(please file an enhancement request in the issue tracker)

eZ Publish does not provide these features.
(re: content object edit view url naming
convention / parameter simplification)

I would imagine it would be fairly trying if not
futile to try to offer this feature currently.

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

test go27

Wednesday 14 November 2007 3:23:34 am

Hi Rémy Limouzin

<b>First read more about Role</b> http://ez.no/doc/ez_publish/technical_manual/3_9/concepts_and_basics/access_control

I have seen in you site that url http://www.ambeli.com/role/view/1 allows anonymouse user to do everything.
That is because of the following string:
"content * * "

Éditer le rôle : Anonymous

content read Section( Standard )
content pdf Section( Standard )
rss feed *
user login SiteAccess( ambeli )
<b>user login SiteAccess( ) </b>
content read Class( Flash , Image , Quicktime , Windows media , Real video , Banner ) , Section( Media )
content create Class( Atelier )
content create Class( Atelier )
content edit Class( Atelier )
<b>content * * </b>
infocollector * *
<b>* * *</b>

<b>Then I changed it to</b>

Affichage du rôle
Rôle
Nom

Anonymous
 
Règles d'action du rôleModule	Fonction	Limite
content 	read 	Section( Standard ) 
content 	pdf 	Section( Standard ) 
rss 	feed 	* 
user 	login 	SiteAccess( ambeli ) 
content 	read 	Class( Flash , Image , Quicktime , Windows media , Real video , Banner ) , Section( Media ) 
content 	create 	Class( Atelier ) 
content 	create 	Class( Atelier ) 
content 	edit 	Class( Atelier ) 
infocollector 	* 	* 

Utilisateurs et groupes assignés à ce rôleUtilisateur	Limite	

<b>And dont forget about "ParentClass, Section( Standard)" where Anonymous will create "Atelier" "content create Class( Atelier )"</b>

Don't forget to remove user which was created by me for testing purposes.

Good Luck!

Xavier Dutoit

Wednesday 14 November 2007 11:58:00 pm

Hi,

As you might have seen, the url is different each time (the number is the id of the object).

Beside, what's the benefit of having an nice looking url while you're editing and object ?

X+

http://www.sydesy.com

Rémy Limouzin

Thursday 15 November 2007 1:24:07 am

thanks for you help <b>test go27</b> !!!! ^^'

and other also :-)

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 31 2025 00:39:09
Script start
Timing: Jan 31 2025 00:39:09
Module start 'layout'
Timing: Jan 31 2025 00:39:09
Module start 'content'
Timing: Jan 31 2025 00:39:09
Module end 'content'
Timing: Jan 31 2025 00:39:09
Script end

Main resources:

Total runtime0.0256 sec
Peak memory usage6,144.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0062 588.2500151.2266
Module start 'layout' 0.00620.0040 739.4766220.7188
Module start 'content' 0.01020.0138 960.19531,005.9609
Module end 'content' 0.02400.0016 1,966.156337.9922
Script end 0.0256  2,004.1484 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002710.4036140.0002
Check MTime0.00114.1935140.0001
Mysql Total
Database connection0.00083.039410.0008
Mysqli_queries0.003112.170630.0010
Looping result0.00000.039110.0000
Template Total0.00124.610.0012
Template load0.00093.516310.0009
Template processing0.00031.019010.0003
Override
Cache load0.00062.421810.0006
General
dbfile0.00031.250080.0000
String conversion0.00000.024240.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs