Welcome, Guest
Username: Password: Remember me

TOPIC: [FIXED] Front End layout display issue - no backend layout

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

  • BTB300
  • BTB300's Avatar
  • Online
  • Moderator
  • Posts: 415
  • Thank you received: 131
  • Karma: 47
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
The administrator has disabled public write access.

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

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

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

  • BTB300
  • BTB300's Avatar
  • Online
  • Moderator
  • Posts: 415
  • Thank you received: 131
  • Karma: 47
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)
The administrator has disabled public write access.

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

  • VeCrea
  • VeCrea's Avatar
  • Offline
  • Platinum Member
  • Absolute JCook fan
  • Posts: 473
  • Thank you received: 100
  • Karma: 30
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 administrator has disabled public write access.
The following user(s) said Thank You: BTB300

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

  • BTB300
  • BTB300's Avatar
  • Online
  • Moderator
  • Posts: 415
  • Thank you received: 131
  • Karma: 47
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???
The administrator has disabled public write access.

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

  • BTB300
  • BTB300's Avatar
  • Online
  • Moderator
  • Posts: 415
  • Thank you received: 131
  • Karma: 47
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...
The administrator has disabled public write access.

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

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

There still be a lack here.
Coding is now a piece of cake
The administrator has disabled public write access.

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

  • BTB300
  • BTB300's Avatar
  • Online
  • Moderator
  • Posts: 415
  • Thank you received: 131
  • Karma: 47
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();
Last Edit: 06 May 2012 11:38 by BTB300.
The administrator has disabled public write access.

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

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 985
  • Karma: 140
Thank you.

Fixed now.

Please regenerate.
Coding is now a piece of cake
The administrator has disabled public write access.
The following user(s) said Thank You: BTB300
Time to create page: 0.162 seconds

Get Started