You can think of the xcreate module as an empty module. After installing this module, it can be transformed entirely into a module that fits your needs. While creating a category, you can create two tpl files: one representing the short.tpl section and the other representing the full.tpl section. Let’s explain this with an example.
Suppose you need a game download module.
Category name: Game
Let’s say the custom fields we need are as follows:
For the game download link: use “Field Type = URL”. Let’s enable the dynamic duplication feature because a game may have multiple download links.
For the system requirements field: let’s use an HTML editor. No need for dynamic duplication.
For the supported systems field: it should be a Multiple Selection field.
For the game images field: use an Image Gallery.
You can create as many fields as you want for this game category, and you can enable or disable the dynamic duplication feature for each single or multiple-use field.
All Available Custom Field Types:
Text (Single Line) Multiline Text HTML Editor Image Upload Image Gallery (Multiple) File Upload Dropdown List Multiple Selection Single Selection Date Picker Date-Time Picker Number Email URL Color Picker
With this logic, you can create as many categories as you wish—such as a music download category, movie download category, real estate category, etc.—and meet your needs through custom categories and custom fields. Since the short.tpl and full.tpl sections are independent from each other, you can design completely category-specific layouts.
The Xoops Custom Field Module that I have been working on for a long time is now ready to be tested. The module can be used with all Xoops modules, but you need to implement the integration for the module you want to use it with. I have completed the integration for the Publisher module, so you can test it with Publisher. I will prepare a tutorial when I have time.
With this smart add-on, you can display the contents of the Publisher module anywhere you want in your theme, independently of the Publisher module's blocks.
custom category="5" = category selection order="rating": Sorting type template="publisher_custom": Template to be used limit="5": Number of articles to display status="2": News with an active status.
You can find many more example codes and all parameters in the README_EN.md file.
XOOPS Publisher Custom Plugin is a powerful and flexible Smarty plugin developed for the XOOPS CMS Publisher module. With this plugin, you can display your Publisher module content anywhere in your theme files, in any format you desire.
I always use an old version of Xoops (2.0.16...) on my site aquaportail.com but sometimes, I use the most recent versions of Xoops to hack "my" code for a better compatibilty with recent versions of PHP.
There's a real problem with PHP 8.4 in kernel/common.php with implications in kernel/functions.php. Fonctions to open, read, etc., a session are not compatible with 8.4 for session_set_save_handler with xoops_gethandler. "$sess_handler = xoops_gethandler('session'); session_set_save_handler..."