-
Posts
2,321 -
Joined
-
Last visited
-
Days Won
44
Everything posted by tpr
-
This wasn't too user-friendly to me as one should re-login to see the system templates in the templates list. Now I solved it by setting the session var to 1 if this tweak is enabled in AOS and the user is on the template list page. The session var is removed when saving AOS with this tweak unchecked. I see no issues with this approach but feel free to correct me if I'm missing something.
-
The main motivation is to make the module work without the Hanna code module. config/page: its just a different approach to have a value available for the module. Perhaps $config is more appropriate here.
-
I haven't tried this module so this request may be out of sync but how about adding items that wouldn't require Hanna code module? What I have in mind is having eg a $config->hannaCodeDialogItems = array( item1 => function () { ... }, ... ) code somewhere in template files so one could easily insert custom items to ckeditor? Perhaps $config could be replaced with $page.
-
Sure It's the second and I thought the first one is on steroids... Now I know I was very wrong
-
I'll have a look on the above issues/requests later, nowadays I'm busy with a 4.04 kg newborn who thinks he can steal all the hours in a day (and night)
-
Beautiful code! Nice to see somebody else using Latte and in such an advanced level Am I right you're using custom filters, like |thumbnail or |number_local? If you think you have filters/macros to share, please share TextformatterMultiValue: I meant the getlines filter as a replacement. This is very new and allows only 1 or 2 items per lines (value or key+value) so if you need more items per line it will not do. ALIF: it's not AOS (which is strictly loaded in the admin) but the editlink macro. Again, it's very basic compared to ALIF or FEEL or Fredi. But if you have those modules at place I think better to leave them there to avoid unexpected side effects What do you think about adding a module option to TLR to get rid of the "noescape" filter? At least for projects where myself is the only dev/editor I don't expect malicious code
-
Nice to see a few of my modules in such a big project! FYI with AOS you can replace TemplateAdminColumns, and with TemplateLatteReplace filters/macros TextfomatterMultiValue and even ALIF, provided if you are not using their advanced features.
-
Sure, I'll have a look later. This "(roles=superuser)" is new to me. Is there somewhere I can read more about this (and similar tricks)?
-
Haha, that would be more fun f it weren't flipped at 180 deg
-
Why? Ready.php is my best friend
-
The abovementioned feature is available in v141, plus a new CKEditor plugin Indent Block and some minor updates.
-
Handy shortcuts to edit translations in a textdomain file in other languages in the upcoming version:
-
Just popped in to praise the getlines filter's coolness I have a CKEditor field containing a simple unordered list. I wanted to animate each lines separately but it wasn't possible because the whole UL was rendered together so I couldn't add the required classes to each LI's. Using getlines together with striptags filter it's now possible ($iterator is built-in): <ul n:inner-foreach="($p->body|striptags|getlines) as $key => $value"> <li data-animate data-animation-classes="animated fadeInLeft" data-animation-delay="{$iterator->counter * 300 + 200}"> <h3>{$key}</h3> {$value} </li> </ul> Of course I could add the required attributes in CKEditor but that would require more troubles (modifying CKEditor field to allow attributes, hardcoded delay values, etc).
-
v041 contains two new filters: getlines and imageattrs. The first is a simple replacement to my MultiValueTextformatter module. Unlike the module it can only return a simple or an associative array but in fact that's just enough most of the time. The imageattrs filter is an easy way of adding image width-height-alt attributes. "alt" value is taken from image description or set empty if not provided, or optionally can be removed entirely.
-
Maybe this could help: http://ckeditor.com/addon/tableresize To force initial 100% you could use CSS: table:not([style]) { min-width: 100%; } Since Table Resize adds an inline style the initial 100% width should go away if the user resizes the table.
-
I would definitely do this via CSS. You can add a CSS file using the module AdminOnSteroids for example or Admin Custom Files. table { min-width: 100%; } Or you can continue using config.js and try adding this: var sheet = (function() { var style = document.createElement("style"); style.appendChild(document.createTextNode("")); document.head.appendChild(style); return style.sheet; })(); sheet.insertRule("table { min-width: 100%; }", 0);
-
Multi Language ready without adding additional languages?
tpr replied to PWaddict's topic in Multi-Language Support
I've done this several times, no issues here. The language tabs don't appear if there are only 1 language.- 1 reply
-
- 3
-
Maybe you should post what your actual goal is, that would possibly generate more proper answers.
- 10 replies
-
- page::render
- render
- (and 4 more)
-
It's only an example that you can override values, it's up to you to restrict to a specific page using if($page->id) or whatever.
- 10 replies
-
- page::render
- render
- (and 4 more)
-
You can use str_replace() or preg_replace() but you can also modify fields in /site/ready.php since you can overwrite fields value: $page->title = 'Custom title';
- 10 replies
-
- page::render
- render
- (and 4 more)
-
Yep, I'm also thinking about adding an option to AOS for adding 3rd party ckeditor plugins because of such cool stuffs
-
Is $page->first means move page to first position? If so, wouldn't be a more descriptive name better, eg moveFirst or similar?
-
I've modified the editlink macro in v039, now you can easily add any attributes and additional url parameters to the edit link. This way it's easy to add edit links that open the admin in a lightbox. I've added a few lines about it to the docs along with a style example.
-
The "Tree" panel is already draggable here, and also the "View page" panel. But it's a different thing than in case of columns, here you only resize one element.
-
What panel do you think of?