1
dartex
Module block content access from main page
  • 2005/4/20 17:16

  • dartex

  • Just popping in

  • Posts: 6

  • Since: 2005/4/9 2


Hi all. I need help. I want to place content provided by XOOPS module (WF-section) on the main page. For example i want tp place article on the main page.... all block that were with this module can't be used for this.

How can i do this?
Can it be done using Templates or PHP? if it can be done using
templates how can i create new block for existing module?

I will appriciate your help.

2
dartex
Re: Module block content access from main page
  • 2005/4/20 17:28

  • dartex

  • Just popping in

  • Posts: 6

  • Since: 2005/4/9 2


I have found that this file /modules/wfsection/article.php create content what i need and put it in $article.maintext.

How can i access this content?

3
dartex
Re: Module block content access from main page
  • 2005/4/20 18:12

  • dartex

  • Just popping in

  • Posts: 6

  • Since: 2005/4/9 2


One more question
there is config information in xoops_version of the every XOOPS module

$modversion['blocks'][1]['file'] = "wfs_artmenu.php";
$modversion['blocks'][1]['name'] = _MI_WFS_BNAME_ARTMENU;
$modversion['blocks'][1]['description'] = "Shows Article menu";
$modversion['blocks'][1]['show_func'] = "b_wfs_artmenu";
$modversion['blocks'][1]['template'] = 'wfs_block.artmenu.html';

if i will just add informaion on my new block and create .php and .html files will my block appear at the XOOPS or i should install module again?

too much questions but i want to take 110% from Xoops... create really nice site

4
jlm69
Re: Module block content access from main page
  • 2005/4/20 18:23

  • jlm69

  • Module Developer

  • Posts: 719

  • Since: 2002/7/19


If you just want to make wf-section your home page you can go into
system admin -> preferences -> general settings
and set wf-sections as the module for your start page.

Hope that helps

5
dartex
Re: Module block content access from main page
  • 2005/4/20 20:27

  • dartex

  • Just popping in

  • Posts: 6

  • Since: 2005/4/9 2


Thanks jlm69 for your reply.
I also want to put content from other modules on my main page... I think i can do this just creating new blocks for modules that will take content from it. But i don't know how t o add custom blocks to exisitng modules?????

I have some PHP/MySQL expirience so it will not be a proble to take existing block and change query and output data. But i don't know how to integrate this at XOOPS.

6
jlm69
Re: Module block content access from main page
  • 2005/4/20 20:47

  • jlm69

  • Module Developer

  • Posts: 719

  • Since: 2002/7/19


Then you are on the right path, but you don't need to reinstall the module, just update it in the modules admin.

7
dartex
Re: Module block content access from main page
  • 2005/4/20 22:29

  • dartex

  • Just popping in

  • Posts: 6

  • Since: 2005/4/9 2


Thank you jlm69 i will try to do this.
Unfortunately XOOPS doesn't have full and detailed documentation so many questions being asked again and again. It's other side of free software

Login

Who's Online

274 user(s) are online (163 user(s) are browsing Support Forums)


Members: 0


Guests: 274


more...

Donat-O-Meter

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

Latest GitHub Commits