Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

Errors with Layouts, URL Rewriting, Data Picker 13 Jun 2013 12:20 #7461

Hi I am not sure if this is an issue with J-Cook, Joomla or my configuration/server.

I have Joomla! setup with "Search Engine Friendly" URLs and "URL rewriting". I am attempting to add a modal data picker to the front end of my website. It works fine when I turn these options off.

I created a modal layout for my view. I can view the layout by going to:
index.php?option=com_chronos&view=studies&layout=modal

With SEF and rewriting on, this URL is rewritten as:
/studies/modal

Visiting this URL produces an Error 500:
500 - View not found [name, type, prefix]: modal, html, chronosView

It appears that it is losing the "studies" portion when parsing the URL.

I get the same error when trying
/studies/default
, which is the name of my default list view.

I only get this error on list views. Attempting to visit
/studies/study/view
and
/studies/study/edit
and the respective layouts are displayed as expected.

As I was writing this, I just discovered more information that may be helpful. I have a menu option setup for "Studies" - myurl.com/studies is setup to go to the default studies view. If i visit /studies/studies/default - or /studies/studies/modal - my layouts are displayed as expected.

However - Joomla! is not creating these links from the modal data picker. It creates the link /studies/modal not /studies/studies/modal.

Any ideas?

Please Log in or Create an account to join the conversation.

Re: Errors with Layouts, URL Rewriting, Data Picker 17 Jun 2013 12:20 #7515

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
Modal layout does not exists in front. You must copy the back-end modal layout to the front.
Add the displayModal() function in the VIEW file.

I changed something in URL rewritting.
Can you try again please.
Coding is now a piece of cake

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.117 seconds

Real time saver and great Component Builder tool ! I have been developing with J-Cook Pro Component Builder for several months now and can say with all honesty that this product/service is second to none. The product is feature rich and is being improved and added to all the time. Do yourself a favor if you need to build a Joomla! Component then you can do no wrong in trying the product. You will save on time and effort while being able to deliver your project on time. J-Cook pro does the hard work for you you then have the freedom to fully customise the end result for your own needs. 

One word: Awesome.
Edwardcox (JED)
         

Get Started