Go Back   Mosets Community > Mosets Announcements and Discussions > Mosets & Joomla

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 03-30-2017, 09:03 AM
peterwalker peterwalker is offline
Mosets'd
 
Join Date: Nov 2013
Posts: 53
Default Move template options into configuration to eliminate clutter

When you developed the per category config system, I assumed the template options would eventually be moved to the config, so each category would then determine all display alterations.

Currently the template list becomes cluttered if categories use different style choices or any other change. It would be ideal if all options remain in the configuration.

Is there a plan to do this?
Reply With Quote
  #2  
Old 03-30-2017, 03:25 PM
dknight dknight is offline
Mosets Team - Lead Developer
 
Join Date: Dec 2004
Posts: 26,468
Default

Hi Peter,

Thanks for your feedback on this - That is good idea. I don't have any plan to revamp the category configuration at the moment, but will note this down in our internal docs for future enhancement.
__________________
Lee
Lead Developer
Mosets.com - Quality Joomla! Solutions
Reply With Quote
  #3  
Old 03-31-2017, 01:08 AM
peterwalker peterwalker is offline
Mosets'd
 
Join Date: Nov 2013
Posts: 53
Default

I made the changes yesterday, though it required changes in 2 core files, but worth it since I now only need 2 templates instead of 15.
Attached Images
File Type: png screenshot-2017-03-30-12-57-41.png (48.6 KB, 29 views)
Reply With Quote
  #4  
Old 04-01-2017, 05:43 AM
peterwalker peterwalker is offline
Mosets'd
 
Join Date: Nov 2013
Posts: 53
Default

Using radio buttons created too many rows in the mt_config table, so I opted for checkboxes
Attached Images
File Type: png screenshot-2017-03-31-17-36-30.png (55.7 KB, 29 views)
Reply With Quote
  #5  
Old 04-09-2017, 07:37 AM
peterwalker peterwalker is offline
Mosets'd
 
Join Date: Nov 2013
Posts: 53
Default Template layout using shortcodes

A shortcode method was developed to layout and style the single template per category. The method adds the advantage of placing any custom field where ever desired, without code editing, simply by using [insert field="20"] or multiple fields as [insert field="20,41,87,12,"]

The default output is just the field content. To include the field label (caption), merely requires the word label to be included in the shortcode. eg:
[insert field="20,41,87,12," label]

Any module can be inserted with [insert module="105"]
or multiple modules [insert module="105,4,8"]

Some standardized shortcodes are included for core and other normal post content.
[title] - the listing title
[image] - listing big image
[text] - listing description
[photogallery] - listing gallery
[date] - listing created date ...and many more.

The attached images show the shortcodes in use and the resulting output. Every item is inserted by shortcode, including the ad banners which are supplied by a module. Preset formats are easily set by selecting from the Styles drop select. Each selection will autofill the textarea and load the corresponding stylesheet in the frontend.

This template adds great flexibility and maximizes the CCK potential of Mosets Tree, to make it the sole choice of Joomla users. Of course for this to work as proposed, the template settings needs to be moved to the Mtree category override function.
Attached Images
File Type: jpg screenshot-2017-04-08 18-56-31.jpg (182.5 KB, 23 views)
File Type: jpg screenshot-2017-04-08-18-56-58.jpg (174.1 KB, 23 views)
Reply With Quote
  #6  
Old 04-10-2017, 01:23 PM
dknight dknight is offline
Mosets Team - Lead Developer
 
Join Date: Dec 2004
Posts: 26,468
Default

Very interesting Peter. Do you have a functional website that successfully implement this?
__________________
Lee
Lead Developer
Mosets.com - Quality Joomla! Solutions
Reply With Quote
  #7  
Old 04-11-2017, 02:36 AM
peterwalker peterwalker is offline
Mosets'd
 
Join Date: Nov 2013
Posts: 53
Default

The development is unconventionally being done at a live site. What started as a need to reduce the use of a template per category, evolved into now 2 weeks of sketching, scratching and re-writing, as the ideas flow.

The page shown in the screen capture is http://my-caribbeanradio.com/busines...ory/ragashanti
Other categories using the template are
http://my-caribbeanradio.com/media-cloud
http://my-caribbeanradio.com/event-list
http://my-caribbeanradio.com/mcr-post

The primary category is the radio station list, and it is still using its specially configured template. It will eventually be moved to the new system once it is stable.

Core files affected
  • administrator/components/com_mtree/admin.mtree.config.html.php
  • administrator/components/com_mtree/admin.mtree.html.php
  • components/com_mtree/mtree.php
  • components/com_mtree/Savant2/Savant2.php - had to disable the plugins echo function else it would print at the top of the page regardless of instructions.

Other features added
These functions are all inserted easily via custom fields
A module was developed to display the Mosets admin listing search globally, just for convenience, to quickly locate an item for edit.



Also for convenience, a menu module was created for global access posting and management of Mosets configs etc.



Just for suggestion
Mosets Tree should be categorized as a Content Construction Kit that will serve as a directory, online dating list, classifieds, real estate list, movie list, Blog/News/Magazine, photo gallery, video gallery... endless usage.

To increase usage of Mosets Tree by millions, lower the price of the core component significantly, $10 - $20, or even free, then sell each module and plugin separately. Marketing science shows that many consumers will spend $500 on 50 items for $10 within a day, instead of spending $200 for a single item that will do all that of the 50, simply because they 'think' it's cheaper to buy 50.
Attached Images
File Type: jpg screenshot-2017-04-10-14-13-15.jpg (25.0 KB, 18 views)
File Type: jpg nav.jpg (43.2 KB, 18 views)
File Type: jpg comm.jpg (11.7 KB, 18 views)

Last edited by peterwalker; 04-11-2017 at 02:59 AM.
Reply With Quote
  #8  
Old 04-13-2017, 05:41 AM
peterwalker peterwalker is offline
Mosets'd
 
Join Date: Nov 2013
Posts: 53
Default

I added a caption column to the mt_images table, and able to retrieve the data in both listing edit and frontend detail page (http://my-caribbeanradio.com/mcr-pos...riage-is-legal), however, I can't pass the input field to the database.

What file and code can I change to enter the data?

edit in admin.mtree.html.php to include the caption input field
PHP Code:
foreach( $images AS $image ) {
        echo 
'<li id="img_' $image->img_id '">
            <label class="imgchk"><input type="checkbox" name="keep_img[]" value="' 
$image->img_id '" checked /></label>
            <a class="modal" href="' 
$mtconf->getjconf('live_site').$mtconf->get('relative_path_to_listing_medium_image').$image->filename '">
            <img src="' 
$mtconf->getjconf('live_site') . $mtconf->get('relative_path_to_listing_small_image') . $image->filename '" />
            </a>'
;
        
//--caption input modification
            
echo '<span><input type="text" value="'.$image->caption.'" name="img_caption" placeholder="caption" /></span>
        
            </li>'
;
    } 
the output


I tried an update method in mtree.php within the isset($files['image'] condition, but nothing saves
PHP Code:
if( isset($files['image']) ) {
//---mtree coding...
//--- my edit at the end
$database->setQuery('UPDATE #__mt_images SET caption = ' $database->quote($post['img_caption']) . ' WHERE img_id = ' $database->quote($img_id));
$database->execute();

Attached Images
File Type: jpg screenshot-2017-04-12 17-06-23.jpg (97.2 KB, 16 views)
Reply With Quote
  #9  
Old 04-18-2017, 01:18 PM
peterwalker peterwalker is offline
Mosets'd
 
Join Date: Nov 2013
Posts: 53
Default Editor XTD plugin to insert related items per listing

This plugin inserts various shortcodes within a post to output related items, media objects and social hashtag link.


Related items can be searched by keywords and multiple listing links can be inserted.


Social hashtags are created from any word or phrase inserted

Media objects are from various plugins included with the template



The frontend output
Attached Images
File Type: jpg inserter.jpg (56.3 KB, 12 views)
File Type: jpg shortcodeinsert.jpg (177.3 KB, 11 views)
File Type: jpg objectinsert.jpg (40.4 KB, 11 views)
File Type: jpg output.jpg (211.8 KB, 12 views)
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
The Component Broke My template tradewise Mosets & Joomla 0 03-01-2009 03:35 PM


All times are GMT +8. The time now is 05:30 AM.

Copyright © 2005-2010 Mosets Consulting

Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.