Jump to content

pwired

Members
  • Posts

    2,241
  • Joined

  • Last visited

  • Days Won

    2

Posts posted by pwired

  1. @flydev I guess I should have mentioned that this one is a more easy finder alternative for home users, but not for pro users ?


    @adrian I am not even a mac user my self, I just picked up doing mac service to get a piece of the cake.
    Many photographers and home users around here seem to have problems to find their way with the default finder
    so they asked me for a more easy non commercial alternative. No need to apologize, I guess it was me swinging
    the door to wide 🙂 You are on top of it man, I just love all your modules.

     

    • Like 2
  2. Quote

    The last update was in 2011Are you actually serious ?
    Sorry if you are - maybe it is actually awesome ?

    Dude, no need to get jumpy, this is not through time stuffed and over-engineered software.
    This simply works and does the job without all the wrapped commercial bs.
    Why not evaluate it before you reply ?
    I wouldn't have posted if I didn't have satisfied clients with it.

     

    • Like 1
  3. Lol, you mac lovers still go merry go round with path finder - commander one - forklift > > >  ??
    MFilemanager is what I add up after I have done a new mac os installation for a client.
    Satisfied clients is the best feed back I can give you:

    http://www.moroshkaproject.ru/#

     

     

    • Like 1
  4. Hi Francesco,

    Quote

    Can we do the same thing in processwire?

    Yes you can do this in Processwire. This is not part of Processwire but simply part of javascript and css.

    Here is some basic use of javascript and css to achieve this:

    <script language="JavaScript">
    function setVisibility(id, visibility) {
    document.getElementById(id).style.display = visibility;
    }
    </script>

    And here is an example to open a little window like you mentioned:

    <a href="javascript:void(0);"
    NAME="My Window Name"  title=" My title here "
    onClick=window.open("window-child.html","Ratting","width=550,height=170,0,status=0,");>
    Click here to open the child window
    </a>

     

    Here is a small tutorial that shows you how you can open a little window:

    https://www.plus2net.com/javascript_tutorial/window-parent.php

    Instead of opening a small window you can also toggle hiding and showing your own div inside Processwire,
    in the example below you can replace the button with a word as you mentioned:

    https://www.w3schools.com/howto/tryit.asp?filename=tryhow_js_toggle_hide_show

     

    • Like 1
  5. Quote

    You seem to be confused, let me help to clarify:

    Thanks for taking the effort for clarifying.

    Quote

    Please stop hijacking this thread.

    I hear you, and will leave it behind of me.

    Quote

    You can choose to use for your project whatever you want.

    I am already looking into the bolt cms to see if that is better choice for me.

     

  6. My advice is to get into the Processwire delayed output strategy, my experience is that it gives you the best code organization and flexibility.

    Yes there are many posts already in the forum about deploying and keep in sync. Just do a search for it.

  7. If it adds anything to the converstation, I have nothing against uikit, bootstrap, or whatever css framework out there. They simply exist and are there for the use how you see fit for a project or not. However none of them should end up in Processwire. Maybe I just got paranoid when I see how many likes uikit gets but in reality I don't have to worry that one day uikit get's cemented inside Processwire. I do see however a growing trend that Processwire is getting over-engineered. What happened to all the likes for Processwire getting out of your way, having nothing out of the box but only flexibility. Do those likes still exist ?

    • Confused 2
  8. Hi AndZyk,

    Thanks for your reply.

    Quote

     which you have made clear multiple times . . .

    Yes you are right about that. I have to be more careful or I will end up profiled 🙂

    Quote

    Although I can‘t see a reason why . . .

    Thanks for that link to how to change the admin theme to the Reno theme.
    It shines a new light for me on the matter.
     

    • Like 2
  9. Ok, UIkit will be there in the admin and that decision was simply made. It would be fair enough, if there was a possibility to uninstall it, to remove it, or to replace it with your own external css file.

  10. Good notice Bernhard, I wouldn't either.

    About being biased . . . every time when I hear the word "wordpress" I get a bit jumpy . . . . but hey that's just me . . . .
    About biased coders I know, they like to joke around: "watch out - Im gonna stuff your laptop with wordpress code" - lol

    If somebody looks for html themes, it only takes 5 min. bouncing over the net and you find lots of good and free themes

    http://www.tooplate.com/

     

     

    • Like 1
    • Haha 1
  11. Ok,

    Thanks for your replies.

    Yes there are other typewriter scripts out there.
    Thing is I like this script because for one reason it is smart coded together in only 8 kB
    and it opens up a lot of possibilities.

    If anyone is interested in it for one of your projects, you can find it here: https://mntn-dev.github.io/t.js/
    (no affiliate, mit-license, only wanting to show cool stuff) and here: https://www.youtube.com/watch?v=39NZDe95_g0

    Ok,
    I contacted the coder of the script and he was kindly enough to reply and give a few solutions:
    one working solution in my main.css

    del {
        text-decoration: none;
    }

    And guess what, now I have it working in the CKEditor body field 🙂

    Edit:
    Instead of overriding globally in my main.css
    I override it locally directly in the hanna code snippet
    This sets it actually to: problem solved.

    Remains the overrides not working in the quirky behaviour
    of mystyles.js and config-body.js files, see below.

    =================================================================================================

    I am already happy with the solution above, but I am not satisfied yet.
    I was digging through the forum because I remembered a few posts about mystyles.js that reside in
    site/modules/InputfieldCKEditor/mystyles.js

    If you have the Button Styles enabled in the Toolbar of CKEditor,
    it should be possible to put inside mystyles.js the same override, right ?

    /**
     * mystyles.js
     *
     * This file may be used when you have "Styles" as one of the items in your toolbar.
     *
     * For a more comprehensive example, see the file ./ckeditor-[version]/styles.js
     *
     */
    
    CKEDITOR.stylesSet.add( 'mystyles', [ 
     { name: 'Inline Code', element: 'code' }, 
     { name: 'Inline Quotation', element: 'q' },
     { name: 'Left Aligned Photo', element: 'img', attributes: { 'class': 'align_left' } },
     { name: 'Right Aligned Photo', element: 'img', attributes: { 'class': 'align_right' } },
     { name: 'Centered Photo', element: 'img', attributes: { 'class': 'align_center' } }, 
     { name: 'Small', element: 'small' },
     
     { name: 'Deleted Text', element: 'del', attributes: { 'text-decoration': 'none' } }, 
     
     { name: 'Inserted Text', element: 'ins' },
     { name: 'Cited Work', element: 'cite' }
    ] );


    I would like to have it working there also, but it doesn't work there and I have read a few posts that
    for some reason you have to rename the file mystyles.js to make it work in CKEditor ?

    https://processwire.com/talk/topic/17862-share-your-ckeditor-settings/

    ======================================================================================

    Besides the file mystyles.js there is the file config-body.js

    I tried the following in this file config-body.js

    CKEDITOR.editorConfig = function( config ) {
    	// Define changes to default configuration here. For example:
    	// config.uiColor = '#AADC6E';
    	   
            CKEDITOR.config.coreStyles_strike =
        {
            element : 'del', attributes : { 'text-decoration' : 'none' },
        };	   
    };

    But same as with the mystyles.js here also it doesn't work with CKEditor

     

  12. Ok, to avoid CKEditor recognizing the typewriters <del>  </del> tags as "strikethrough" text
    I have setup a field with a name: bodytext and as a Type: "Text" so it doesn't use CKEditor.
    Under the TAB Details I selected again Hanna Code Text Formatter for this field.

    Also in this case the typewriters output text between it's <del> </del> tags, again appear as text with "StrikeThrough"

    How is this possible without CKEditor in use but only Type: Text ?

     

  13. Hi,

    I am using a typewriter effect for a headline text. I use Hanna Code to output the typewriter code in the body field.
    The typewriter effect is working ok. The thing is that part of the Hanna Code output is text between <del> tags.
    This is because the typewriter effect is working with <del> tags.
    The problem is that CKEditor is interpreting <del> tags as "deleted" text and now the text between these <del> tags
    appear as striked text (a line going through the middle of the text). This becomes now unwanted CKEditor behaviour
    as the text must appear not striked.

    I looked everywhere where I can modify CKEditor to make it stop text between <del> tags appear as striked text.

    Anyone know where to modify CKEditor for this or any solution for this ?

     

  14. Here is the snippet

    <?php
            $intro = $pages->get('/intro/');
            foreach($intro->images as $image) {
            $image = $image->size(500, 350);
            $lines = $image->description;
            $words = explode(",", $lines);
            echo "<div class=" . '"da-slide"' . ">" . "\n";
            echo "<h2>" . $words[0] . "</h2>" . "\n";
            echo "<p>" . $words[1] . "</p>" . "\n";
            echo "<a href=" . '"#"' . " class=" . '"da-link"' .">" . $words[2] . "</a>" . "\n";
            echo "<div class=" . '"da-img"' . ">" . "<img src=" . '"' . $image->url . '"' . " alt=" . '""' . ">" . "</div>" . "\n";
            echo "</div>" . "\n";
            }
            ?>   

     

    In my above example I used php explode for a title, a paragraph and links, but as you see it, you will get the idea.

    Simply add your alt description as a second word in your image description field and use php explode to echo it inside alt=" . . . "

    Your image description field will then look like this:        image description, alt description, other description, . . . . .

    Use a comma as a separator

     

    • Like 2
  15. Yes you can

    There is a module for this somewhere that extends the images field functions.

    But the easiest and fastest way is to use the Processwire api together with the php explode function for this.

    I have a snippet for this somewhere but cannot find it right now.

    I will post back when I find it.

    • Like 1
  16. Quote

    You select it by renaming the folder "site-blog-editorial" to "site". (The other site profile folders you may delete.)

    You are confusing Processwire beginners. They should know that Processwire automatically renames the selected installation profile to "site"
    and automatically removes the unused profiles.

     

    test3.gif.b53a8b8b8180de6d523a3b68f03950f2.gif

     

     

     

     

×
×
  • Create New...