-
Posts
35 -
Joined
-
Last visited
Everything posted by zota
-
Hi! Sorry, I know this has already been discussed and clarified but I can't find it. I use pw on localhost and it is too common for me the auto log off and have to re log in. How can I control this and spend more time logged in but inactive? (I think Ryan already has an article about this... a link?) Thanks
-
How to insert a <div> in tinyMCE? [SOLVED no!] [now really SOLVED]
zota replied to zota's topic in General Support
Yes, the same nightmare! Yes, a lot, I was about to give up on DIVs! -
Hi, even in my sloppy and irresponsible tinyMCE field (without htmlpurifier, without pastefilter, with <div> to <p> conversion disabled) I can't introduce a <div> in real time. If I modify Ryan's examples and try #Blocks p.ms-4 { } /* Outline paragraph */ works well. But neither #Blocks div.card { } /* Card */ nor #Blocks div { } /* Card */ work. This, { "extended_valid_elements": "article div" } and this { "extended_valid_elements": "div" } does nothing. How to insert a <div> is in the most basic examples of the tinyMCE docs, I thought it was easy... and it should be but not for me... Does anyone have a clue? Thanks SOLUTION (EDIT: the BAD one, see post above from virtualgadjio) Solution starts here:https://www.tiny.cloud/docs/tinymce/6/user-formatting-options/#style_formats with the lines { title: 'Blocks', items: [ { title: 'Paragraph', format: 'p' }, { title: 'Blockquote', format: 'blockquote' }, { title: 'Div', format: 'div' }, /* <-- here */ { title: 'Pre', format: 'pre' } ]}, so, I just drop the { title: 'Div', format: 'div' }, in the defaults.json and works. Now let's clean the mess and drop tha line on the wp right place ?
-
Hello! I've just start learning the use of tinyMCE in processwire and, therefore, I should postpone my question. But, sorry, I got a bit nervous. I need a field that allows total or almost total pasting, that maintains styles, without eliminating <td>s because they are empty, that allows injecting div.whatever-class (only injects paragraphs), in short, a sloppy and irresponsible tinyMCE field. Other text fields will be more cautious. Ryan starts (and very well) by the cautious side... Can anyone give me a clue? Thanks
-
Thank you guys, seems that Joss is not around anymore... I always thought that every good piece of software needs a tutorial with his style... and maybe a few suggestions were enough for an update to pw novelties ? thanks again
-
Hi! Joss Sanglier's funny tutorials, like «but what if i dont know how to code?», were eradicated? Or ...? Thanks
-
Same here, but I'm using ProcessWire 3.0.98 © 2018 locks seemed random but i'll check it
-
[SOLVED, not] strange URL - browser shows all server path
zota replied to zota's topic in General Support
Hi, No, not problem solved, but seems I have news (or I am totally confused). After some try I become suspicious about the server and softaculous. (Yep I started my pw install with the same softaculous.) Went on a new softaculous install of Minimal Site Profile just for testing. After the install, without any login or change, I gave a few clicks on the menu. And the browser starts showing things like: http://julio.x10host.com/home/juliox15/public_html/pw2nd/ and the right would be http://julio.x10host.com/pw2nd/ without the anoying home/juliox15/public_html/ right? (pw2nd is a subdir where softaculous installed pw Minimal Site Profile) If you are curious, you can follow one or both of those links, not in a hurry to kill it. Besides leave softaculous alone or give another server a try, any suggestion? (Meanwhile I messed up the previous install but that's life) Thanks -
[SOLVED, not] strange URL - browser shows all server path
zota replied to zota's topic in General Support
OK, thanks for the tips, I'll re chek in a few hours. It was working on my localhost and I presume my check was too lazy before the upload... ? Don't get mad I'll give notice, maybe it will be good for other lazy people... -
Hi, After 2 or 3 cliks on my nav bar the browser starts to show http://julio.x10host.com/home/juliox15/public_html/logos/ instead of http://julio.x10host.com/logos/ Where or what should I start the fixing? Thanks
-
Hi! Just reading "Inputfield dependencies enable you to specify the conditions under which a particular field in the page editor is shown or required." at https://processwire.com/api/selectors/inputfield-dependencies/ but the text talks like an ongoing work. So: we now have more on inputfield dependencies or the text is up to date? Thanks js
-
Hi, thanks for the nice module, I like HoT. About this: HoT fields are stored as a json string, so seems that there are no chances of being easy queriable :/ I would like to see some workarounds or some clues on that subject. Thanks again
-
! Interesting. You use a «complete copy»? Is it handy? can you, please, give some more tips? thanks
-
You are right (of course you are). I prepended <?php namespace ProcessWire; ?> and works fine. thanks again
-
Hi! Sorry for being again with a silly question.... Look at that code: <div pw-append="pageContent"> <?php //include("./scripts/_func.php"); //include("./scripts/_func.php"); function renderNav(PageArray $items) { blah, blah pasted code... } if($page->hasChildren) { echo renderNav($page->children); } clumsy isn’t it? Here is the thing: Function renderNav is defined on the file _func.php, so I tried to include _func.php . Then I get a php error - renderNav() is undefined! (what!?grrr) Then, as you see, I duplicate the include line and run. BUT got the php error msg: "Can't redefine function renderNav()" - What!? the f***g bastard already knew renderNav()! Then, I temporary gave up, commented out the include lines and did a copy + paste the renderNav(). And, ugly enough, it works, sure. What's wrong with my include? Thanks EDIT: solved thanks to LostKobrakai remark. I forgot the <?php namespace ProcessWire; ?> thing
-
[SOLVED] CKEditor - extra plugin does not show up on admin
zota replied to zota's topic in General Support
Thanks Harmen and Macrura for trying to help. It was a permission problem . Forgot to check and change permissions after the extraction... I' m too old to learn from my repeated mistakes... -
[SOLVED] CKEditor - extra plugin does not show up on admin
zota replied to zota's topic in General Support
errr again. Spoke too soon. File plugin.js does the install/configure thing. Then we have js file "[plugin name].js in a sub folder! So shame on me. BUT we are always instructed to leave the full package on the plugins folder. -
[SOLVED] CKEditor - extra plugin does not show up on admin
zota replied to zota's topic in General Support
errr... impossible. All plugin js file is named plugin.js. -
Hi, installing a CKEditor plugin seems easy: - download, - extract to /site/modules/InputfieldCKEditor/plugins/[folder with the plugin name will sit here/] - on admin setup > fields > any field that works with CKEditor > tab Input > scroll down and you will see the new plugin waiting activation: Ooops, only shows the default extra plugins... What am I missing? Thanks EDIT: it was a simple permission problem. One should check and change the permissions of downloaded stuff...
-
You are right! Fine now! Thanks!
-
Install seems fine, both in 1st and 2sd attempts, no error msgs, but when Setup > graphQL this shows up: Parse Error: syntax error, unexpected '^', expecting ']' (line 9 of /home/zota/www/pw-logica/site/modules/ProcessGraphQL/GraphiQL/build/static/js/main.059c7daf.js) Any clue? thanks
-
The thread reference doesn't show up. Can someone fix this? please... thnks
-
Tx Adrian, besides the save, there was another json_encode bug
-
Hi! The following code does this: (a) $p survives to the test, (never echoes "stupid!") so (b) resend $p->textJSon, (believing on the browser's client side console) BUT ( c) does not save $value to $p->textJSon (both reload and back side prove it) The puzzle: how can (b) and © been compatible? Thanks (btw: $p should not be necessary, as I post to "./". So $page should be enough, right? But result was exactly - or looks - the same) <?php if($config->ajax) { $value = json_decode(file_get_contents('php://input')); $p = $pages->get("/hot/"); if (!($p instanceof NullPage)) { $p->of(false); $p->textJSon = $value; echo json_encode($p->textJSon, JSON_UNESCAPED_UNICODE) ; } else { echo 'stupid!' ; } return; } else { ... include head, foot, and so...
-
Oh! I'm doomed! Ok, I'll try github search. Thanks