Forums / Setup & design / URL rewirting & /content/action(NewButton)

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 :-)