Support Forum

  • Page:
  • 1

Setting a T3 tpl template to be used by component e.g. sh404sef

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

Hi there,

following question for a workaround:

I am currently setting-up the 404 page. sh404sef is in use.
Problem is that the 404 page ignores the position customizations from the template.

I tried to use a hidden menu, but it does not work. After some trouble shooting I think the problem is that sh404sef (like probably any component) calls the index.php in the template folder, gets the T3 framework call, but then falls back on default.php there.

I moved the template from the tpl folder to the template main folder, which gives a blank screen.

So I guess I need to understand how to call the T3 framework and have it use the right sub template.

Any suggestions? Hope this saves others some time.

best regards
MM
  • MaMuster's Avatar
  • MaMuster
  • LIfetime Developer - Big Bamboo
  • 329 posts
  • 10 Thanks
  • Karma: 4
Last Edit: 5 years 7 months ago by MaMuster. Reason: improved subject
The administrator has disabled public write access.
With the initial bit

"Problem is that the 404 page ignores the position customizations from the template"

What happens?

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
The 404 page displays in the content area (base3 template).

What is missing is
a) the custom positions added to a style (tpl/mystyle.php). Checked with firebug they are not rendered.

b) custom.css - If it uses the standart base3 template at least the logo should be displayed with the css from custom.css

But not even "normal" template style meaning base bas3 is applied. Only the logo text is visible in the background.

I checked it with another customized website without individual positions. Here it works.
  • MaMuster's Avatar
  • MaMuster
  • LIfetime Developer - Big Bamboo
  • 329 posts
  • 10 Thanks
  • Karma: 4
The administrator has disabled public write access.
So to confirm positions that come with the template as standard display but no custom.css file styling or template css does?

Do you have a link for the site?

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
Yes confirm standart positions display.

No custom.css for the logowrap. No custom positions.

Template.css for content is used, but - here I am not sure for the fallback on Bootstrap - not for the logowrap.

It seems that some base3 default template is used by the component which does not change (see obove) with a hidden menu.

Link: laschoresch.com.w010b0c6.kasserver.com/ich.html
  • MaMuster's Avatar
  • MaMuster
  • LIfetime Developer - Big Bamboo
  • 329 posts
  • 10 Thanks
  • Karma: 4
The administrator has disabled public write access.
I'll need to check on this with a developer

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
Hi Paul,
have you had time to check with a developer?
Thanks a lot
  • MaMuster's Avatar
  • MaMuster
  • LIfetime Developer - Big Bamboo
  • 329 posts
  • 10 Thanks
  • Karma: 4
The administrator has disabled public write access.
Some additions:

It is definitely the default.php templates from /tpls/ that is used as imagined.

Still strange that the menu assignment is overridden.

I tried an error.php (joomla default and base3 customization) as suggested in the T3 docs (t3-framework.org/documentation/bs3-customization#404-page).

The base3 default template remains the one of choice.
  • MaMuster's Avatar
  • MaMuster
  • LIfetime Developer - Big Bamboo
  • 329 posts
  • 10 Thanks
  • Karma: 4
The administrator has disabled public write access.
Very sorry on the delay on this - can you confirm the link for the real site?
As I'm seeing a broken site at the moment if I navigate to it

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
Hi,

I think that sh404sef intercepts the call for the standard error.php file in the template folder (or reverting to the system folder) and injects it's own page content into the default template.

As the 404 page is a call for a different file to the standard template, creating a menu item to the article that sh404sef injects into the error page wouldn't work.

I think the only real way to get control would be to create a custom error.php file in the template folder and add your own module positions. You would need to disable sh404sef overriding this file and showing it's own article.
I may be wrong though so it might be worth asking the developers of sh404sef on how it can be customised (maybe using loadposition within the 404 article?).

Regards,

Rob
  • Robert Went's Avatar
  • Robert Went
  • Moderator
  • 2210 posts
  • 196 Thanks
  • Karma: 90
The administrator has disabled public write access.

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

Happy Campers