-
Posts
2,769 -
Joined
-
Last visited
-
Days Won
31
Everything posted by Martijn Geerts
-
fixed the notice, pushed to github.
-
Raymond, you need some sun light ! See you monday.
-
The wrapper needs a double pipe, to split. || Will correct this issue soon. Gonna dive into the other issue tomorrow. Thank you for your report.
-
Looking great Nico !. There's a notice undifined index in line 3 of default.php. Using wire('input') instead of $_GET, will fix this I think.
-
You can add that flexibility with a little logic in your templates. Say you add 2 checkboxes, Display Album & Render Children. Then on the template you check if "Display Album" is true and count the images. If there are to less or none just display a photo or do nothing. When there are more then x items display an album. Same goes for child pages. If you want it in between your page body, you can use php's str_replace. But I think the easiest way right now is using Hanna code A simple Album/Foto script for-example: modify it for your needs !HannaCode:album:eyJuYW1lIjoiYWxidW0iLCJ0eXBlIjoiNiIsImNvZGUiOiJcLypoY19hdHRyXG50YWc9XCJcIlxuaGNfYXR0cipcL1xuaWYoc3RybGVuKCR0YWcpKSB7XHJcblx0JGltYWdlcyA9ICRwYWdlLT5pbWFnZXMtPmZpbmRUYWcoJHRhZyk7XHJcblx0JGNvdW50ID0gY291bnQoJGltYWdlcyk7XHJcblx0XC9cLyBzaG93IHBob3Rvc1xyXG5cdGlmKCRjb3VudCA8IDMgJiYgJGNvdW50ICE9IDApIHtcclxuXHRcdGZvcmVhY2goJGltYWdlcyBhcyAkaW1hZ2UpIHtcclxuXHRcdFxyXG5cdFx0XHQkdGh1bWIgPSAkaW1hZ2UtPndpZHRoKDYwMCk7XHJcblx0XHRcclxuXHRcdFx0aWYoJGltYWdlLT53aWR0aCgpID4gNDAwKSB7XHJcblxyXG5cdFx0XHRcdGVjaG8gXCI8ZGl2IGNsYXNzPSdpbWFnZSBwaG90byc+XFxuXCI7XHJcblx0XHRcdFx0ZWNobyBcIlxcdDxhIGhyZWY9J3skaW1hZ2UtPnVybH0nIGRhdGEtZnJlc2NvLWNhcHRpb249J3skaW1hZ2UtPmRlc2NyaXB0aW9ufScgZGF0YS1mcmVzY28tZ3JvdXA9J3skcGFnZS0+bmFtZ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wvPlxcblwiO1xyXG5cdFx0XHRcdGVjaG8gXCJcXHRcXHRcXHQ8XC9hPlxcblwiO1xyXG5cdFx0XHRcdGVjaG8gXCJcXHRcXHQ8XC9kaXY+XFxuXCI7XHJcblx0XHRcdH0gZWxzZSB7XHJcblx0XHRcdFx0ZWNobyBcIjxpbWcgc3JjPSd7JHRodW1iLT51cmx9JyBkZXNjcmlwdGlvbj0neyRpbWFnZS0+ZGVzY3JpcHRpb259JyBcLz5cXG5cIjtcclxuXHRcdFx0fVxyXG5cdFx0XHRlY2hvIFwiXFx0PFwvbGk+XFxuXCI7XHJcblx0XHR9XHJcblx0XHRlY2hvIFwiPFwvdWw+XFxuXFxuXCI7XHJcblx0fVxyXG59In0=/!HannaCode
-
Im sorry for the panic k07n. As you can see the community will be there.
-
I don't see a good option for this. How it is now is realy clean & I don't know if there's a site right now that reaches that limit. And normal pw installs, and modules should not suffer i think. Sorry bringing it up again. Somewhere i knew there was an old topic. But had forgotten it.
-
Tnx adrian & soma. DomDocument way is much cleaner! Wil take it in consideration.
-
The user template can be extended with the custom fields you want.
-
Nice to see: DOMDocument. When I started I though can i use this, (never seen that before then) But after a while I settled for good old plain PHP. Don't know enough of the DOMDocument, is it fast enough, is it good compatible etc etc. Good to see my code was helpfull, You're welcome.
-
I'm in a restaurant now, will come back on this topic tomorrow. I love all the input you give! Lets make an awesome module. Today we go for a few days to bratislava, so I don't know if I have the time to come back on the topic within the next few days. ps, I removed the pattern for the inline style at all & updated the source code on git.
-
Changed the typo. Width is required right now. Didn't thought about using this module for captions only. (Module was meant for the evil editors who messes up your site with all different sizes & alignments etc.) I will think off inheriting the size of the image. And I put the "get alt text from original rte, with fallback to image->description." as todo (if you want captions only, consider Teppo's solution. )
-
Yep, images from other pages are supported. ( But images have to be valid PW images. ) And yes you're right about the image description. (didn't even know that the description in the PW image could be different, I have never used that one from the RTE.) // refering to to page where the image lives. $page = wire("pages")->get($id); To take $page as variable name can be confusing, sorry about that. (Will change it thanks for finding) What I actualy do is filter till I have the ID of the page where the image lives. Find out what basename the image has. And then loop all imagefields on that page to till I have the image Object.) Don't want to take over this thread, please post next thing on the interceptor post. btw updated the $page variable name (not a good name) and set an TODO for the alt text. ( tnx for finding adrian )
-
If you want more control over your images trown in with WYSIWYG. And you want captions for landscape or/and portrait or both. Maybe you can take a look at TextformatterImageInterceptor. The text formatter will recognize image orientation. (also recognize image tags if tagged sets are used) If you wish, add a class for the caption div and the caption wil be created underneath the image with the classname you specified. So basicly you have image caption control over different kind of images. There are other settings like cropping, sizing, positioning and wrapping images. Will not cover the details here. And maybe there's to much overhead ( server side ) using my module for just captions. about the textformatter: forum post <blink>advertisement</blink>
-
Large amounts of sub folders is still a little concern I think. ( on ext3 max 32000 subdirectories or something ) I can imagine sites with user generated content easily grow very big in terms of subdirectories. I'm not worried about the PW core.
-
Think it will a great way to batch & import. Great work so far.
- 33 replies
-
- 1
-
-
- crud
- handsontable
-
(and 3 more)
Tagged with:
-
Maybe to tiny to post here, but may become handy for someone. It simply removes label, padding & border from all fieldsets. Nothing more. Just give some precious space back. FieldsetShrink on github
-
- 2
-
-
Using repeater fields - when to use & when not?
Martijn Geerts replied to Vineet Sawant's topic in Getting Started
A way to handle this ( how i think could be managed, many options here). Extend the user template with the fields you need. Upon subscription, check is a user exists with email address and check its role. If user exists, update the data. -
Using repeater fields - when to use & when not?
Martijn Geerts replied to Vineet Sawant's topic in Getting Started
For storing data like the subscriptions i wouldn't use repeaters. I would use pages or else a custom table in db. Even if the max number of subscibers wil be 20 or so. The next time you will need the script, you've probably to rewrite the whole script cause that that low amount of subscribers is rare i think. Handling data from repeaters is more tricky and need more custom code then when you use pages as storage. My need for repeaters are rare, maybe for an image slider or populate tables. -
I'm on vacation, but the yesterday it starts with rain. (little spare time & good excuse to continue this module). A lot of progress is made with this module, It's now to the point of testing / bug fixing & fine tuning. I've added it to the modules directory and it is in a pending state. If you have a little spare time, please test this module. Thank You, Martijn.
-
Thank You Adam & Ryan. Love your theme to adamspruijt.
-
You can't trash a user.
- 74 replies
-
- fields
- alter table
-
(and 1 more)
Tagged with:
-
Module: Create a Pages->find(query) as a field
Martijn Geerts replied to alevine's topic in Modules/Plugins
Somewhere Soma did a post about github. That post did me start with git. I'm on mobile with a laggy expensive connection, so don't wanna search the forum. Cool you created a module. -
That will solve the include of your styles/scripts in admin to. Thanks again for creating this module. I'm sure i will use it.
-
Welcome Hendrik, remove -default from that folder name. The folder name should be site. Have a good time here on the forums & enjoy ProcessWire.