Welcome to the MetaMod and Chameleon Support Forums.

Before posting, please check out the FAQs.

helpme

 

Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.

 

Can I assign a specific template for authors in the front end

Can I assign a specific template for authors in the front end

Firstly I'd like to thank metamodguy for her answers to my previous problems.
My question is :
After I logined in as an author, all article became editable.
After I entered the edit state, the editor appeared in the same template.
Usually the place for article is not sufficient for the editor, so I want to change the template for the editor.
I noticed that at this time the url contais the string "task=edit", but how I can get the information in my metatemplate.

tdchen
Beginner Modder
ranks
useravatar
Offline
7 Posts
Administrator has disabled public posting

Re: Can I assign a specific template for authors in the front end

Hi Tdchen,

that's an excellent question. Luckily there's a function in JomGenius that can identify article edit pages:


if ($core_genius->check("pagetype = articleedit")) return true;

Then in the SUCCEED action, set the template you want to use.

Cheers,
Stephen

Stephen Brandon
MetaMod / Chameleon developer
If you use MetaMod or Chameleon, please post a rating and a review at the Joomla! Extensions Directory: Chameleon | MetaMod

metamodguy
useravatar
Offline
3314 Posts
User info in posts
Administrator has disabled public posting

Board Info

Board Stats:
 
Total Topics:
1685
Total Polls:
6
Total Posts:
5912
Total Posts Today:
4
User Info:
 
Total Users:
11504
Newest User:
toko solo
Members Online:
0
Guests Online:
188

Online: 
There are no members online

Forum Legend:

 Topic
 New
 Locked
 Sticky
 Active
 New/Active
 New/Locked
 New Sticky
 Locked/Active
 Active/Sticky
 Sticky/Locked
 Sticky/Active/Locked