-
Notifications
You must be signed in to change notification settings - Fork 5
Description
I always create my own templates for different websites and I would like to have full control on what is displayed in templates. I mean for example in screenshot below is shown one article from list view. I would like to have full control on those buttons. I found buttonsManage.php file and created its override according to this page https://github.com/JoomCoder-com/JoomCCK/wiki/Customization but thing is that even in that file I do not have full control over each part.
for example I do not want them to be displayed as a buttons group, also I do not want to display settings part as a dropdown list. I want to have opportunity to display directly only edit link without dropdown there and all other items of dropdown I would like to have somewhere else what I can not do, because this file is limiting me. I also have no control over bookmarks and follow. I only can change bookmarks icon from template settings, nothing more. I do not even can change html of those two buttons.
So What is my idea is not it possible to just use some shortcodes ( or variables ) which will not have html , but only values so I can put them in my template file inside my html structure where I want.
<?php echo Layout::render( 'core.list.recordParts.buttonsManage', ['item' => $item, 'section' => $this->section, 'submissionTypes' => $this->submission_types, "params" => $params] ); ?>
This code above has output of buttonsManage.php file which looks this way
`
`but I want to have variables of each item only without html structure for bookmarks button I just need variable which will output value of onclick="$bookmarkvariablehere" and icon src="$bookmarkiconvariablehere"
similar two variables for Follow record button
and for dropdown I just want to have variables which will output value of href="$variableeditlink" like this so I can decide where in list of full view template I can put this variables myself.
of course I do not say that we should get rid of current version how you display those buttons, but if there will be some kind of list for shortcodes which will let us customize look of core parts of extension, it would be great. this would let me create really cool templates.
I do not mean just this buttons but there are others too for example funnel icon after author which lets you display only articles of this author.
Also what about custom icons? for example we can easily use our custom markers in map fields, and bookmarks, but what if I want to do same for follow, and other places? would be cool if we could just upload new package of icons to some folder and in admin have a option to select icons pack which we want to use, same way as we do for bookmark.