-
Posts
7,529 -
Joined
-
Last visited
-
Days Won
161
Everything posted by kongondo
-
Module Module: RuntimeMarkup Fieldtype & Inputfield
kongondo replied to kongondo's topic in Modules/Plugins
Yes you can get the value. See the examples in the first page, first post of this topic. However, you cannot use a selector to query the value. Yes, you cannot use a selector to query it, but you can access the value. -
Module Module: RuntimeMarkup Fieldtype & Inputfield
kongondo replied to kongondo's topic in Modules/Plugins
@Manol, It seems your question has been answered? Moderator Note Please don't start different topics about the same issue. Also, use this module's support forum for all questions related to it. I have merged your other topic here. -
The very ugly configuration is the new style (since a couple of versions back). What you saw in the (old) 'official' video is the old style. Welcome to the forums ?.
-
Yeah, coz it's not even picking up the README.
-
Maybe it only works with GitHub hosted modules?
-
New members are allowed a maximum of two posts within 24 hours the first time they post. It is meant to be a spammer deterrent. We are working on either relaxing the limit and/or making it clear to new members that the limit exists. moderator note @Mikaello and @Michkael. There's no need to create two profiles. Please delete one. After 24 hours, you should be able to post normally without restrictions.
-
To display the web site in English and Chinese
kongondo replied to SIERRA's topic in Multi-Language Support
I've moved it for you. -
To display the web site in English and Chinese
kongondo replied to SIERRA's topic in Multi-Language Support
Moderator Note: Please don't double post -
No. Not true . The docs themselves show how to add an image from an external URL.
-
Oops my bad. I misread. The URL string is not malformed since it works when accessed directly.
-
The URL (the one in the PW error) works fine if you access it directly. So, maybe some other formatting issue?
-
Sounds like a circular reference issue...
-
Hi. Just looked at your issue quickly, so you might be already doing the right thing. Note that you need to first save a new page before adding images to its image field. Save the page first, then add the image, then save again.
-
Hi @Noel Boss, In your case, if the module extends (not in a PHP technical sense) $page, then it will have to be an autoload module. Your module adds methods to the Page and WireArray classes. Hence, if it is not an autoload module, I don't see how it will work just by doing this: $json = $pages->find('template=skyscraper')->pageQueryJson(['title']); You will definitely get a PHP error about Method PageArray::pageQueryJson does not exist etc. Maybe I'm missing something. Did it work for you with the new changes? Sorry if I am taking your round in circles ?.
-
-
Events Fieldtype & Inputfield (How to make a table Fieldtype/Inputfield)
kongondo replied to ryan's topic in Modules/Plugins
Do you mean a separate field for time? Not out of the box, no. You'd have to edit the source code. If you can be a bit more specific about your needs, we can rustle up something for you. -
You only use autoload if the module needs to load automatically when ProcessWire boots so that you can listen to every single request and typically attach hooks to some event of interest. Don't let this confuse you though. Modules can hook into events without being autoload modules. An example autoload module is Blog module's Publish Date. It listens to when Blog Posts are published and sets a publish date. As such, it needs to be auto-loaded. Does your module need to boot with ProcessWire or does one call it when one needs it? If the latter, then it means presently, it is just loading and using up resources when it doesn't need to. Can your module work like this? $pageQuery = $modules->get('PageQueryBoss'); $query = $pages->find('template=skyscraper'); $json = $pageQuery->pageQueryJson($query); It doesn't seem to me like it needs to autoload, but I've only had a brief look, so I could be wrong. You can read a bit more about autoload modules in the module class docs here.
-
Maybe you are calling your hook late. Have a look at the code in the first post of the following thread, just below the /site/templates/includes/hooks.php sub-heading
-
@Noel Boss, Looks great, thanks! I've just had a quick look. Any reason why the module is autoload?
-
Use either InputfieldPageAutocomplete or InputfieldPageListSelectMultiple as input for the page reference field. These will only load selectable pages on request.
-
No surprise here.. I guess I am from the old school. A 'long time' ago, logos used to be background images set on anchors (<a> tags). Menu items (<a> tags) used to have background images called sprites that would 'shift' on hover to create a nice hover effect...
-
Like I stated, my page has children and grandchildren . It does have custom fields...but yeah, maybe not like yours. So, maybe, show us the custom fields you have. Otherwise, it's a bit more difficult to help. Also, ProcessWire version.
-
Using fwrite() to create file in scripts directory
kongondo replied to louisstephens's topic in API & Templates
I there's maybe two things to consider Can your fwrite() access the location you want to write to? The location of the js script needs to be accessible (readable) to the world so that browsers can serve it.. If the js script are for external use (i.e. external to PW), maybe you want to keep it clean and add them to the file system of whatever app you are using them for. Just my lazy 2p on a lazy Friday afternoon..- 2 replies
-
- generation
- frwite
-
(and 1 more)
Tagged with:
-
<unrelated> I need to try laragon again. Last time I did, it didn't work for me or I didn't want to exclusively work on PHP 7.x. I still need to support PHP 5.3 + for some of my modules and laragon did not seem to support that? </unrelated>