Jump to content

DV-JF

Members
  • Posts

    318
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by DV-JF

  1. Hi,

    I'm trying to set up a multisite with following specifications:

    • 2 different URLs
    • I have to reach the backend via the two URL's (eg. http://example-firstsite.com/processwire/ and http://example-secondsite.com/processwire/) so that i can create different user / editor roles witch only get "their content"
    • I want to use the nearly same template-files on both sites
    • I want to use only one core
    • I want to share some content between the sites
    • I want to have a "child-page based database for persons" witch I can query and use on both sites with it's own url

    I tried to use apeisa Plugin Multisite but had to recognize that it´s not possible to use it without having a "master-site"
     

    Can you give me any advices how to set PocessWire up to comply with the requirements?

    Many greets, Jens alias DV-JF.

  2. Hi,

    I've use PW on a few sites now. Mostly I'm doing the same steps again and again at the beginning of a new website:

    download some modules

    install them

    install language

    install theme and theme files

    ...

    Normally I'm using the same modules and even theme structure on every site I'm creating. 

    So, is there a way to setup PW once then "freeze" this point of development, so that I can reuse it to other projects? How do you solve this?


    Greets, Jens.

  3. Hey,

    I've a problem,witch i cant solve by myself so I hope you have any ideas what to do:

    I want to use FormTemplateProcessor here are my settings:

    A template called contact_form with two fields - contact_mail and contact_text - no template file associated.

    A template called contact with standard fields - title + body + images and so on - associated to contact.php

    <?php
    
    /**
     * Kontakt Seite
     *
     */
    
    include("./head.inc"); ?>
    <div class="main wrapper clearfix">
    
        <article class="clearfix">
            <h2><?php echo $page->get("headline|title");?></h2>
            <?php echo $page->body; ?>
        </article>
    
    <?php
    $form = $modules->get('FormTemplateProcessor');
    $form->template = $templates->get('contact_form');
    $form->requiredFields = array('contact_email');
    $form->email = 'mail@mail.com'; 
    echo $form->render(); 
    ?>
    
    </div> <!-- #main -->
    
    <?include("./foot.inc"); ?>

    This looks fine to me and if i try if it works on frontpage, everything seems to work. I got the message, that my submission has been sent. BUT I got no Mail.

    I've tested it with various e-mail addresses, checked my spambox,  but I cant find a mail from my form.

    I've thought, that maybe there might be something wrong with my Server, but the log-file seems fine to me:

    188.111.105.10 - - [21/Jan/2013:10:07:48 +0100] "POST /kontakt-email/ HTTP/1.1" 200 4643 "http://www.mydomain.de/kontakt-email/" "Mozilla/5.0 (Windows NT 6.1; rv:17.0) Gecko/20100101 Firefox/17.0" "www.mydomain.de"

    I don't know where to search for errors. Perhaps I have to mention that I'm using a various admin path...

    Would like to hear your advices.

    Many greets, Jens alias DV-JF

  4. Hey,

    I`ve tried this module and everything works fine. Thx for the work!

    Only thing I'm not able to activate ist a language switch. When I try this code:

    $lang = $user->language;
    $langname = $lang->name == 'default' ? 'en' : $lang->name;
    
    $user->language = $languages->get("default");
    $st = $langname == 'en' ? " class='on'" : '';
    echo $page->language_published->has($pages->get("/en/")) ? "<li><a$st href='{$page->url}'>EN</a></li>" : '';
    
    $user->language = $languages->get("de");
    $st = $langname == 'de' ? " class='on'" : '';
    echo $page->language_published->has($pages->get("/de/")) ? "<li><a$st href='{$page->url}'>DE</a></li>" : '';
    
    $user->language = $lang;

    I get the following message:

    Error Call to a member function has() on a non-object (line 59 of /homepages/20/d340034586/htdocs/web/site/templates/head.inc)
    This error message was shown because you are logged in as a Superuser. Error has been logged. 

    All I wan to do is display two flags, witch switch the language of the current page when clicked...

    Any ideas?

    Greets Jens alias DV-JF

  5. Hello,

    after relaunching a website I want to redirect all my old URLs to the new structure. Here's the problem:

    When i try to add

    Redirect 301 /index.html /startseite

    I get the following result:

    http://www.domain.de/startseite?it=index.html

    Is there a simple way to do what I want and get rid of "?it=index.html"?

    Greets Jens alias DV-JF

  6. Hello,

    I wanne make my templates responsive but have a little problem with the images because the height and width are stored in the outputted code like:

    <img class="align_center" width="982" height="655" alt="" src="/site/assets/files/1024/start.jpg">

    Is it possible to delete those attributes in the generated code by default?

    Greets... Jens.

  7. What are you using to make the menu hovers/dropdown? Bootstrap?

    Just pure CSS with some CSS3 features like opacity and transition based on Boilerplate...

    I'm playing with implementing some placeholder template option. Still have to figure out the details.

    But since I don't really need it and am cautious to not add too many options, this could take a while.

    No, problem for me... Thx for this great module, for a beginner like me it made things much easier :)

    Greets Jens.

  8. Hey everybody,

    this is my first post here and I hope I'm not too stupid. ;)

    My site structure looks like this:

    Home

    About us

    Location
    Opening Hours
    Concept

    Contact

    and so on...

    My problem is the following one: My child-pages are only shown on mouse-over. The "About us" page should not be a clickable page, but only a none-clickable placeholder. Is this possible with this plugin?

    Thx and greets...

×
×
  • Create New...