Jump to content

tpr

Members
  • Posts

    2,321
  • Joined

  • Last visited

  • Days Won

    44

Everything posted by tpr

  1. Why not just get the page that has featured=1 and set to 0 on save hook, instead of iterating?
  2. Here's a mixin I put together for creating hamburger icons. It utilizes the checkbox hack so you can use CSS only to show a mobile menu (or off-canvas menu, etc). Unlike other mixins here you can specify a selector for the label tag if it's not directly below the checkbox, so the label (the icon) can be placed anywhere in the DOM. There is also a "hamburger_tint" helper mixin included to easily colorize the icon/text on hover or in a checked state. Parameters: width: the width of the icon. default: 32px thickness: the thickness of the bars. default: 3px gap: the vertical space between the bars. Overall height is: thickness*3 + gap*2. default: 7px color: the color of the icons. default: #000 (black) radius: border-radius value to round edges. default: 0 anim: seconds of animation duration (transition-duration) or timing function + duration (eg. "ease-out 0.3s"). Use -1 to disable morphing to an "X". default:0.25s labelselector: in case the label is not right after the checkbox, use this setting to tell the mixin where to find it. Eg. "~ div.content header nav label". default: "+ label" padding: extra spacing around the icon. default: 0 text: show text next to the icon, by default on the right. Values: "left" or false to disable. Requires an extra "span" tag. default: "right" CodePen demo GitHub
  3. It's an AdminOnSteroids module issue, please update to the latest.
  4. Yep, several times though the download icons was not harmed at all Update to v151 to fix.
  5. AdminOnSteroids has nothing to do with the frontend.
  6. Not sure but I think the event is "ajaxComplete".
  7. https://github.com/rolandtoth/AdminOnSteroids/wiki#fieldandtemplateeditlinks
  8. They are not stretched but strong (so remove the strong tags )
  9. I guess you could check $page->seo->description and if it's empty, set it to your likings, eg. in ready.php or in your template php file (latter untested). if($page->seo_description === "") { $page->seo_description = 'whatever'; }
  10. Thanks, it's a bug, will be fixed soon.
  11. Latest version is 0.5.1, which contiains Latte 3.0.0-dev, which means the module requires PHP 7 from now on. A new savetemp filter was added in v0.5 that allows saving temporary data. This can be handy eg. when creating an image variation in a src attribute, and would like to add a width/height attribute with the resized image data. Before savetemp you had to save the resized image to a variable first and use this variable in src/width/height attributes, now you can do it much simpler. You could use the "iff" or "setvar" macros too but savetemp is only a matter of adding "|savetemp" where you need it (even inside a filter chain).
  12. You can still use CSS in the admin if you feel so, eg. with Admin Custom Files or AdminOnSteroids, for example.
  13. This will make a great update, thanks! Is multilanguage support planned?
  14. Could you send a screenshot?
  15. Some new filters in v049 (eg. srcset) and an easy way to clear Latte cache by appending ?clearcache to the URL. I've added a sidebar to the GitHub wiki so filters and macros are more easier to find.
  16. Eg upload a company logo to an image field that holds many images. Then add the tag "logo", and use it as the main brand logo. Then perhaps upload another one with tag "footer_logo", and so on. Or mark files for different languages as Ryan recommended lately in a blog post. Or mark images to skip, eg for a gallery. I guess you got the idea now.
  17. I needed this when one of my modules installed a few templates, I digged into the core as I remember.
  18. Two small additions in v150: Misc: add new page: uncheck `Active?` for non-default language names (thanks to Tomka) Misc: hide the `Add new` dropdown button from above the main pagelist Unchecking the active state for the non-default language variant of a page can be handy if only a few pages need to be multi-language, so you don't have to go to the Settings tab to uncheck them all every time adding a new page. Also works with templates with parent-child relationships set (when the first step of the addnew process is invisible). Hiding the Add new dropdown doesn't take the available bookmarks into account, just hides the button entirely (CSS only btw). I never really needed this feature and I agree that it's rather confusing. The main pagelist looks a bit empty without this button though
  19. Thanks @Robin S, just a small addition: you can omit the admin root url part, so use only "Skyscrapers: page/lister/...".
  20. You can also add a similar feature with AdminOnSteroids, NavItems submodule.
  21. I just meant that you can use the css from this module with the stock nette Tracy if you would like to have the new design (in non-pw projects).
  22. All 3 issues above should be fixed in v149, thanks!
×
×
  • Create New...