Jump to content

dragan

Members
  • Content Count

    1,891
  • Joined

  • Last visited

  • Days Won

    20

Posts posted by dragan


  1. 1 hour ago, johnstephens said:

    Has anyone else done something like this?

    Not me. It sounds like a recipe for headache, frankly speaking.

    1 hour ago, johnstephens said:

    How would you recommend setting something like this up?

    It really depends on lots of things... You should tell us more about your current site. What does it do? How complex is it? How many templates do you have now? How dynamic is it - or needs to be in the future? (for visitors and editors) How much functionality is there currently in terms of users interacting with the site (register, login, user profiles, voting / commenting....) ? Is it really just a "brochure" site (mostly static content for frontend-users, but manageable by editors) ? Or really more like a web-application?

    1 hour ago, johnstephens said:

    doesn't have a budget for a full redesign right now

    A redesign is not the same as porting content from CMS A to CMS B. If the site architecture will most likely remain, then I'd talk to the client and persuade them to allow budget to transfer the entire site in one go from Textpattern to PW (using the same frontend markup). In the long run, this would probably be more efficient. Once everything is running in PW, you could then later discuss about a redesign.

    • Like 3

  2. 4 hours ago, Nerijusk said:

    I've tried to add: $config->urls-root = '/de'; but without luck.

    Is that your actual code? There's a missing > there

    $config->urls->root vs.
    $config->urls-root

    https://cheatsheet.processwire.com/config/urls/config-urls-root/

    If that was just a typo here in the forum post, you might wanna check Docker-related forum posts, e.g. https://processwire.com/talk/topic/10736-running-a-processwire-site-with-docker/

     


  3. On 3/18/2020 at 8:34 PM, horst said:

    the times without web fonts was way more challenging in regards to satisfy designers dreams

    I'm old enough to actually remember Macromedia Adobe Flash... sometimes you were forced to use that plugin just to display a (dynamic) custom font (sIFR). Oh the fun we had... sometimes I think the young generation of web developers don't know how lucky they are. 😃 </derail>

    • Like 1

  4. 2 hours ago, Gadgetto said:

    Are the other page fields (beside title and name) already available for API in first step?

        $this->addHookAfter('ProcessPageAdd::buildForm', function ($event) {
            $form = $event->return;
            // If adding page under particular parent
            if ($this->input->parent_id === '1041') {
                // Add inputfield to form after existing title field
                // If you name the inputfield the same as the field you want to populate
                // then the entered value will be saved automatically
                $f              = $this->modules->InputfieldText;
                $f->name        = 'myfieldname';
                $f->label       = 'My Field Label';
                $f->description = 'my field description';
                $f->required    = true;
                $f->attr('required', 1); // use HTML required attribute too
                $title_field        = $form->getChildByName('title');
                $title_field->label = 'Page Title';
                $title_field->description = "page title description";
                $form->insertAfter($f, $title_field);
                $event->return = $form;
            }
        });

    I got this code a long time ago from somebody in this forum, and it works nicely. I can't find the original thread right now. It basically renders the field "myfieldname" in the first screen when you create a new page under parent id 1041. Not sure if that helps for your scenario.

    • Like 1

  5. 5 hours ago, houseofdeadleg said:

    Also, when I delete modules i get the error message - Failed to delete module xxx. Is this a sign all is not well with this site?

    Well, it's certainly a sign that something's wrong somewhere.

    I never quite encountered the same problems (either separately or in combination, i.e. empty FB iFrame + can't delete modules).

    Things I would try / look at:

    • Maybe your hosting company changed / updated something? (PHP version? .htaccess settings)
    • Install Tracy Debugger and put your PW site into "debug mode" (in site/config.php). At the very least, you'll get some warnings / errors that you normally wouldn't see.
    • Check server logs as well as PW logs
    • See if there's any suspicious stuff in your browser JS console.
    • Copy everything to the local machine and see how everything behaves there.

    Hopefully somebody else with more Form Builder experience will soon join in with help/tips.


  6. As if Corona wasn't enough, this morning Zagreb was hit by an earthquake. It seems that several hospitals were also damaged. Now instead of staying at home, several people are forced to go outside.

    • Sad 1

  7. @mjut Please don't place your question in more than one place.

    I read both of your posts, but I'm still not sure about the whole scenario.

    On 3/19/2020 at 3:39 PM, mjut said:

    If I type www.url.com/title1 the page is being redirected to the default language – even if I previously did chose Danish as my language.

    Please define what "even if I previously did chose Danish" actually means. Where and how did that choice happen? Did you create a link that stores language preference in a cookie or session?

    On 3/19/2020 at 3:39 PM, mjut said:

    Is it possible, that the users prefered language is the redirct? Say, if I choose to view the page in Danish and type www.url.com/title1 I want the redirect to www.url.com/dk/title1 not to the default language.

    In your other post, you mentioned that visitors are coming to your site via QR codes. If you want people to see your Danish language content, then simply use your Danish language URL for the QR code, not the default one.

    There are many different strategies how to tackle such things, e.g. detect the user's browser default language and (if necessary) do a redirect. Or make the user click somewhere and store his/her preference in a cookie or session.

    From a usability point of view, you would create your landing page in a way that the users can quickly and intuitively switch language versions, if needed. The default PW multilang site profile has a nice commented working example (how to dynamically switch languages).

    Bottomline: If you did your homework re: information architecture / UX, no special technical "trickery" is needed. Just make sure your navigation and everything else (breadcrumbs...) in your site setup takes ML into account, and once the visitor is on "his/her" language version, they know how to get their respective language content.


  8. A work colleague has to find a new appartment till the end of March, because she got kicked out of the flat-share appt. The real-estate market is already unaffordable for most "normal" people in Zurich under "normal" circumstances. But findind something even halfway affordable in such a short period of time is crazy under such definitely-not-normal circumstances.

    • Sad 1

  9. Nice look and feel.

    If you allow just a few remarks:

    • On really large screens the main texts are too wide. I would either increase the font-size a bit, or define a max-width to make it more readable.
    • The color contrast is insufficient (way below 1:4.5) for most text. If you care about accessibility, I'd adjust the colors accordingly.
    • There's no h1 anywhere. And also no meta description. For SEO, I would also use a bit more text for <title> than just "Goldkinder".
    • Like 1
×
×
  • Create New...