Support Forum

Please note that this forum is only available to you in read only mode. In order to contribute to this conversation you will need to renew your subscription.

advanced skill - removing module from child pages

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

In a Buildr dev site, I needed to add a title H1 to two pages that are hosting a component. So far so good.

When one of the items is selected from the list, the component feeds data using some form of hocus pocus...is there a way to remove the title module from those child pages?

1 - list page (title OK)
2 - 'target' page (want to make the title go away)

the module already has a module class suffix (there is also a page class assigned)
  • blueshift's Avatar
  • blueshift
  • 6 Month Developer
  • 2579 posts
  • 78 Thanks
  • Karma: 26
The administrator has disabled public write access.
You could hide it via css as an easy but hackish solution

display:none

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
Somehow it needs to be done in logic, doesn't it? The pages are generated by the component automatically and if there's anything css isn't, it's logical. (Where, in heaven's name, are even simple variables?!)
  • blueshift's Avatar
  • blueshift
  • 6 Month Developer
  • 2579 posts
  • 78 Thanks
  • Karma: 26
The administrator has disabled public write access.
With pp.whiteeaglenews.com/37-polonus-european-deli

I see an empty page - what bit of this page are you looking to remove?
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
The page is geolocated to within 100 miles....you probably aren't near Massachusetts at the moment, so your page is blank?

The title ' stores' is a custom HTML module that I only want to appear on the listing page (menu item Stores) but disappear from generated pages. (see attached.)

37-polonus.jpg
  • blueshift's Avatar
  • blueshift
  • 6 Month Developer
  • 2579 posts
  • 78 Thanks
  • Karma: 26
The administrator has disabled public write access.
Yep a bit more 100 miles away

Nonstop flight (2 per week) 7 h 30 min away
Connecting flight 9 h 30 min+ away

As you say this is what I see -
page-distance.png
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
What does the extension provider say about your issue?

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
what do you see when you turn off location?
  • blueshift's Avatar
  • blueshift
  • 6 Month Developer
  • 2579 posts
  • 78 Thanks
  • Karma: 26
The administrator has disabled public write access.
ahhh right my browser is blocking the request for my location so it generates that empty page
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
With it enabled I now get


location.png
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
I think I need to place a couple tickets with them before I ask any further questions. I think the lack of the title 'Stores' on the initial listings page should be considered a component issue, not a template or Joomla problem.

And the component needs to show *something* when location is not enabled.
  • blueshift's Avatar
  • blueshift
  • 6 Month Developer
  • 2579 posts
  • 78 Thanks
  • Karma: 26
The administrator has disabled public write access.
Yes sounds a good plan
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
Map problem solved... had to do with the way I was (mis)interpreting parameters.

The custom module only showing on the menu generated page, not so much. If I was just doing all listings (geolocated) they gave me some code that would work. But I have two searches called by the menu, so their logic won't work. I asked them if they would consider putting it on the tracker, but likely this site will turn hot before they get to it - they are already doing a few things for me. :whistle:

So thus, I still have this little problem.
  • blueshift's Avatar
  • blueshift
  • 6 Month Developer
  • 2579 posts
  • 78 Thanks
  • Karma: 26
The administrator has disabled public write access.
Is it a module or a component?

You should be able to create a template override for either view and then change or remove the h1 tags from the override.

You can do this through the template file manager as well but here's the basic docs:

docs.joomla.org/How_to_override_the_output_from_the_Joomla!_core
  • Robert Went's Avatar
  • Robert Went
  • Moderator
  • 2210 posts
  • 196 Thanks
  • Karma: 90
The administrator has disabled public write access.
The original solution was an override, but the logic of the component wouldn't support two search categories. But one of their other ideas worked. ... creating a hidden text separator menu item, then using their SEO feature (SEF, really), to specify the new link as the destination page. It worked! The SEO feature (SEF, really) strips out the menu name from the path, and the module is gone.

So all is well, at least in these precincts.
  • blueshift's Avatar
  • blueshift
  • 6 Month Developer
  • 2579 posts
  • 78 Thanks
  • Karma: 26
The administrator has disabled public write access.
Ah ok. If you would need to create a lot of new menu items then advanced module manager might make it a bit easier to just target the correct pages.
  • 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