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

TOPIC:

[FIXED] Front End layout display issue - no backend layout 06 May 2012 06:17 #2235

  • BTB300
  • BTB300's Avatar Topic Author
  • Offline
  • Moderator
  • Moderator
  • Posts: 415
  • Thank you received: 132
Not sure that this requires a new support ticket so i posted it here...

I have noticed that anytime i have frontend layouts (collection and item) with no matching layout backend layouts that the frontend pages will not load has any one else experienced this?

Backend
collection
item

Frontend
collection
=> frontend collection layout
item
=> frontend item layout

* there a some user layouts that i dont want in the backend admin areas

I guess the obvious answer is to add the backend collection and item layouts then remove once installed any other suggestions?

Thanks in advance

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

Re: Front End layout display issue - no backend layout 06 May 2012 07:06 #2236

  • VeCrea
  • VeCrea's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Absolute JCook fan
  • Posts: 473
  • Thank you received: 100
Never had this issue, although i'm doing exactly what you want to do.
The following user(s) said Thank You: BTB300

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

Re: Front End layout display issue - no backend layout 06 May 2012 10:07 #2237

  • BTB300
  • BTB300's Avatar Topic Author
  • Offline
  • Moderator
  • Moderator
  • Posts: 415
  • Thank you received: 132
Thanks VeCrea,
do you have an author field in the frontend layouts?
Did see this once before just after author wizard was introduced...

I can confirm that creating a blank backend layout with no fields solves the issue

without the backend layouts it complains that it cant find something in the admin side (will post the error later)

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

Re: Front End layout display issue - no backend layout 06 May 2012 10:13 #2238

  • VeCrea
  • VeCrea's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Absolute JCook fan
  • Posts: 473
  • Thank you received: 100
I do have an author field...
I have other backend layouts that don't have anything to do with frontend layouts. Never tried to have frontend layouts without ANY backend layout
The following user(s) said Thank You: BTB300

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

Re: Front End layout display issue - no backend layout 06 May 2012 10:35 #2239

  • BTB300
  • BTB300's Avatar Topic Author
  • Offline
  • Moderator
  • Moderator
  • Posts: 415
  • Thank you received: 132
Just Deleted one of my backend layouts in the builder and ran in sandbox...
- Frontend layout has author field
- the frontend page does not load without the backend layout (no error displayed in sand box)
- put the backend layout back in and the front end layout loads again

Strange???

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

Re: Front End layout display issue - no backend layout 06 May 2012 10:59 #2240

  • BTB300
  • BTB300's Avatar Topic Author
  • Offline
  • Moderator
  • Moderator
  • Posts: 415
  • Thank you received: 132
ok figured it out...
its the require once function that points to the relative backend controller
i guess i will remove it and see what hapens...

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

Re: Front End layout display issue - no backend layout 06 May 2012 11:08 #2241

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
Did you checked entry-point ?

There still be a lack here.
Coding is now a piece of cake

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

Re: Front End layout display issue - no backend layout 06 May 2012 11:29 #2242

  • BTB300
  • BTB300's Avatar Topic Author
  • Offline
  • Moderator
  • Moderator
  • Posts: 415
  • Thank you received: 132
Entry Point is from front end
the problem is in components/"componentname"test/"componentname"test.php on line 227

there is no check for entry point i guess i need to put in a check here...
require_once(JPATH_ADMIN_COMPONENTNAMETEST .DS.'classes'.DS.'jcontroller.php');
if ($controllerName)
	require_once( JPATH_ADMIN_COMPONENTNAMETEST .DS.'controllers'.DS.$controllerName.'.php' );

$controllerName = 'ComponentnametestController'.$controllerName;


// Create the controller
$controller = new $controllerName();

// Perform the Request task
$controller->execute( JRequest::getCmd('task') );

// Redirect if set by the controller
$controller->redirect();

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

Last edit: by BTB300.

Re: Front End layout display issue - no backend layout 07 May 2012 08:02 #2245

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
Thank you.

Fixed now.

Please regenerate.
Coding is now a piece of cake
The following user(s) said Thank You: BTB300

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

  • Page:
  • 1
Time to create page: 0.073 seconds
In the begining i would like to say that j-cook is absolutly fantastic tool! And the person who created it is a genius.
Czyżak (Forum)  

Get Started