1
maker
Custom block in custom page
  • 2005/12/4 14:04

  • maker

  • Just popping in

  • Posts: 24

  • Since: 2004/1/28


I've been using XOOPS for about 2 years now, and for the first time I have this problem, a CMS problem in its essence :

one of my current client's needs are to display custom blocks in custom pages.

For example I have this custom page , "About us" let's say and it needs to contain only some blocks, besides the regular "about us" content.
I know, I could use a module like sections & co to make the page and simultate those blocks in it. But this would not please my client, since he wishes to edit them separately.

Basically I would need to add some other options / custom page s in the "Visible in:" drop-down menu from any block's settings area.

The theme is made to display only the center blocks, and most of them would be center-center ones.

I'm looking for a way to extend that drop-down or a module that can help me with this.

I have to mention that I use 2.0.x XOOPS distribution and intent to keep it since I need a stable 2.2.x one, and it doesn't seem to be

I repeat: custom blocks in custom pages. That's CMS allright :)

2
highlander
Re: Custom block in custom page
  • 2005/12/4 19:57

  • highlander

  • Not too shy to talk

  • Posts: 151

  • Since: 2004/12/5


Hi Maker,

as you state youself this is not a XOOPS feature.
If however your custom block would always be in the same location on the custom page but with custom contents you might be able to hack something.

You could add a bit of code to your theme.html file to display a block if the block title equals the page name.
All you would do then is create your custom blocks and give them the same name as the custom pages.

I know its not pretty and not extremely easy administrate but it might help you out.

greetings Highlander
So, I'm in the park wondering why frisbees get larger as they get closer when suddenly, it hits me...
www.AnimalPedigree.com

3
davidthomas1
Re: Custom block in custom page

Making your own module would solve that problem.

You can make a module container and create the pages.

The pages can then be edited individually by your client.

You can select which blocks to show on which pages from within blocks settings.

Perhaps you want to just have a single block for each page.

Have a look at this link for making a simple module.

https://xoops.org/modules/smartfaq/faq.php?faqid=280
みんなちがってみんないい。

XOOPS 2.0.13.2

4
banjolawyer
Re: Custom block in custom page
  • 2005/12/30 1:58

  • banjolawyer

  • Just popping in

  • Posts: 2

  • Since: 2005/7/18


Quote:

davidthomas1 wrote:
Making your own module would solve that problem.

You can make a module container and create the pages.

The pages can then be edited individually by your client.

You can select which blocks to show on which pages from within blocks settings.

Perhaps you want to just have a single block for each page.

Have a look at this link for making a simple module.

https://xoops.org/modules/smartfaq/faq.php?faqid=280


I am new to xoops, but have a little experience with some other off the shelf php/mysql packages like vbulletin, photopost, vbportal, wordpress, etc. And I've managed to learn a little about coding in the process.

I successfully created a simple custom module following the FAQ linked to in the last post.

I had hoped to be able to make the homepage default to the contents of this module. Can anyone tell me how to do this? If this involves creating a simple center block for the module, how would I go about doing that?

Thank you for your help.

5
davidthomas1
Re: Custom block in custom page

If you've created the custom module, you can add blocks to it from blocks adminstration:

Admin > System > Blocks > Add New Block

When creating a block, you can specify the pages/modules you want the block to appear on. If you look in that listbox, you should see your custom module listed there.

To make your custom module appear on the front page:

Admin > System > Preferences > General Settings

Set "Module for your start page" to your custom module.

That should work,

good luck!

みんなちがってみんないい。

XOOPS 2.0.13.2

Login

Who's Online

152 user(s) are online (103 user(s) are browsing Support Forums)


Members: 1


Guests: 151


mailsdaddy,

more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits