Jump to content

buster808

Members
  • Posts

    69
  • Joined

  • Last visited

Posts posted by buster808

  1. Hi, I have a list of pages with diffrent templates.

    Work-
         Web
         design
         prototype
         video
         interactive

     I want to create a navigation that uses one of the fields from each template so when Work is selected they show.

    I've been able to do this but just for one template.

    <?php $workposts = $page->children("template=webpages");?>

    <?php foreach ($workposts as $post):

    echo "
    <a href='$post->url' style='text-decoration:none'>$post->work_cat</a>";
     
    ?>

    Do I have to link the pages somehow.

    Thanks for any help

  2. Hi, Im mostly a designer before a developer and have created some UIKIT themes

    I guess my question is what would be the easiest format for developers to implement themes.

    Would using CSS variables be better than Sass so no compiling.
    Is design mostly important so could be in just HTML and CSS.
    Would single file components be useful so code is looped and data comes from a Json file.

    Thanks

  3. Html the way to go.
    I think focusing on developers instead of newbies would be better.

    What about a component kit example say:

    Navigation - 10 layouts
    Hero pages - 10 layouts
    Product pages - 10 layouts
    Slider content - 10 layouts
    News pages - 10 layouts
    Data - 10 layouts
    etc

    So you could pick and choose elements to create final theme.

    If theres any issues that developers face regarding theming and designing applications would be great to know.

    Thanks
     

     

    • Like 2
  4. Solved (My JavaScript causing Issue)

     

    Hi, I cant get the link for the parent of a sub menu to go to its page - the submenu works fine.

    Products (Not Working)
         Products One  (Working)
         Products Two (Working)

    $options = array(
        'parent_class' => 'parent',
        'current_class' => 'current',
        'has_children_class' => 'has_children',
        'levels' => true,
        'levels_prefix' => 'level-',
        'max_levels' => null,
        'firstlast' => false,
        'collapsed' => false,
        'show_root' => true,
        'selector' => '',
        'selector_field' => '',
        
        'outer_tpl' => '<ul class="dropdown">||</ul>',
        'inner_tpl' => '<ul>||</ul>',
        'list_tpl' => '<li%s>||</li>',
        'list_field_class' => '',
        'item_tpl' => '<a href="{url}">{title}</a>',
        'item_current_tpl' => '<a href="{url}">{title}</a>',
        'xtemplates' => '',
        'xitem_tpl' => '<a href="{url}">javascript:;</a>',
        'xitem_current_tpl' => '<span>{title}</span>',
        'date_format' => 'Y/m/d',
        'code_formatting' => false,
        'debug' => false
    );
    echo $treeMenu->render($options, $page, $rootPage);
    ?>

  5. Hi,

    I was thinking of creating Processwire Themes for sale using UIKIT with SASS.

    The themes would be coded into Processwire using fields and repeaters with a delayed output strategy with basic tutorials.

    I came back to Processwire a few times as I couldn't get to grips but really glad I made the effort as WP was just hell.

    I feel these would be good for newbies and starter points.

    Just wondered if anyone had any thoughts on this or would I be better off just creating UIKIT themes.

    Screenshot attached.

    Thanks

    uhealth.png

    • Like 2
  6. Hi,

    I want to add icons to the urls using Mark Up Simple Navigation.

    'item_tpl' => '<a href="{url}">{title}</a>'  (can add to all links)

    'item_current_tpl' => '<a href="{url}">{title}</a>', (can add to current)

    How can I add icon to separate urls

    Thanks

     

  7. The thumbnails alt tag is working fine now but how would I set the large image alt that it links too

    foreach ($page->images as $image) {
            $large = $image->width(1000);
            $thumb = $image->size(400, 400);
            $content .= "<a href='$large->url' class='thumb-roll'> <img src='$thumb->url' alt='$thumb->description' /></a>";
        }

  8. Hi.

    I have the below, is there a way to add letter or word count.

        $field = $this->modules->get('InputfieldTextarea');
          $field->name = 'action';
          $field->label = 'Action:';
          $field->value = $p->action;
          $field->columnWidth = 100;
          $fieldset->add($field);

    Thanks

×
×
  • Create New...