Joomla! Discussion Forums



It is currently Wed Nov 25, 2009 10:04 pm (All times are UTC )

 




Post new topic Reply to topic  [ 5 posts ] 
Author Message
Posted: Fri Oct 17, 2008 9:51 am 
User avatar
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Thu Apr 10, 2008 11:45 am
Posts: 27
Location: Kent, England
Would it or ever be possible to access Modules from the Frontend?

I understand this would be hard with certain modules but Custom HTML modules are normally just text.

It is very frustrating if a module with just text cannot be altered on the frontend. I find it quite bizare that this has not been made possible.


Top
  E-mail  
 
Posted: Fri Oct 17, 2008 10:49 am 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast
Offline

Joined: Sat Jun 21, 2008 12:43 am
Posts: 154
Location: New Zealand
I can't see any reason why you could not change the module php file so that if there is a logged in user an edit link is displayed, which for example goes to index.php?edit_module=true

And then have a conditional statement in the module, that if true is in the url, and the user is logged in, display a textarea with the html, instead of the text, and a submit button going to index.php?save_module=true.

Then the module can detect if save is true, and write to the database.

Of course this is making a module more like a component, and will probably end up more of a hack solution than an elegant one... with different modules on different pages and the complications that come with it.


Top
  E-mail  
 
Posted: Fri Oct 17, 2008 11:59 am 
User avatar
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Thu Apr 10, 2008 11:45 am
Posts: 27
Location: Kent, England
Thank you for your reply.

So if I did modify the php files to do this and it does work. Does this mean that everytime I upgrade Joomla to the latest edition I would have to redo this work to enable it to still continue to work this way.


Top
  E-mail  
 
Posted: Fri Oct 17, 2008 2:22 pm 
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Tue Jun 13, 2006 12:20 pm
Posts: 465
This would be easily possible only for "content" modules. With a bit more effort any module's settings could be managed from the frontend.

Ideally though this would be a component...there are a couple ways to go about it...But the simples would be a component that had a drop down for which module to edit. Then just put the content/settings in the frontend....Edit, Save, Done.

Due to size issues with where components are rendered doing it through the module itself is going to be less than desirable.

Thing is anyone withe the capability to do this doesnt mind doing it from the admin....So may be a while before someone would just make this.

Rob


Top
  E-mail  
 
Posted: Fri Oct 17, 2008 11:03 pm 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast
Offline

Joined: Sat Jun 21, 2008 12:43 am
Posts: 154
Location: New Zealand
Quote:
So if I did modify the php files to do this and it does work. Does this mean that everytime I upgrade Joomla to the latest edition I would have to redo this work to enable it to still continue to work this way.


Yes, If I do a custom module I make it myself and copy what code I need. This way if the module has a unique name, it will not be touched by a Joomla upgrade.

I couldn't agree more with what Roba121 said, this is really a component function, and giving limited backend rights to a user is usually not a problem.


Top
  E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

Quick reply

 



Who is online

Users browsing this forum: Batch1211, tphart, xavierf and 39 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group