Jump to content
You are viewing a curated collection of the most significant posts in this topic.

Featured Replies

Solved by WP V0RT3X

Go to solution
  • Community Expert
 

OK, how about releasing a guide on how you built your guide?

I can’t speak for IPS, but it’s still safe to say that this is extremely unlikely.
The people with coding skills don’t need it. They can just open the respective page, inspect the actual HTML and learn everything they need from it. It’s all public and there for everyone to see. 
The people who don’t have these skills, can’t do much with such a tutorial. They would just have to copy code they don’t understand. If they make the slightest mistake, everything breaks and now someone has to give free support for the tutorial. Who is willing to do that? If the user wants just a tiny variation of the template, they would have no idea how to do it. So again, they would ask for free support. Not to mention that such custom Pages templates correspond to Pages database fields and possibly CSS and JS files. If they don’t exist as expected, again, everything breaks. It just doesn’t work. I’ve created an entire online course around learning Pages, but it does not contain teaching people how to create templates from scratch. That’s just not a suitable topic for a tutorial. Either you know how to do it or you can get stock or custom products which deliver the needed functionality. There really is no middle ground. 

Edited by opentype

  • 2 weeks later...

And here it is ...

Could contain: File, Page, Text, Webpage

1. Import the database
2. Edit database and change key to "docs"
3. Create a page like in the tutorial
4. Create a block for the sidebar

{{$recordClass = null;}}
{{$catClass = null;}}

{{if count($records)}}
{{$recordClass = get_class($records[0]);}}
{{$catClass    = '\IPS\cms\Categories' . $recordClass::database()->_id;}}
{{endif}}

{{$firstRecord = null;}}
{{$currentUrlPath = \IPS\Request::i()->url()->data['path'];}}

{{if count($records) and $catClass and count($catClass::roots())}}
<ul class="ipsList_reset cDocs" data-controller="docs.front.devDocs.main">
    {{foreach $catClass::roots() as $root}}
    <li>
        <h2>{$root->_title}</h2>
        {{if count($root->children())}}
        <ul class="ipsList_reset">
            {{foreach $root->children() as $child}}
            <li class="cDocs_closed">
                <h3 data-action="expandSection">{$child->_title}</h3>
                {{foreach $records as $record}}
                {{if $record->container()->_id == $child->_id}}
                <ul class="ipsList_reset">
                    {{if $firstRecord == null}}
                    {{$firstRecord = $record;}}
                    {{endif}}
                    <li>
                        <a {{if $currentUrlPath === $record->url()->data['path']}}class="cDocs_active"{{endif}} href="{$record->url()}">
                            {{if $record->customFieldDisplayByKey('docs-short', 'raw')}}{$record->customFieldDisplayByKey('docs-short', 'raw')}{{else}}{$record->_title}{{endif}}
                        </a>
                    </li>
                </ul>
                {{endif}}
                {{endforeach}}
            </li>
            {{endforeach}}
        </ul>
        {{endif}}
        <ul class="ipsList_reset">
            {{foreach $records as $record}}
            {{if $record->container()->_id == $root->_id}}
            {{if $firstRecord == null}}
            {{$firstRecord = $record;}}
            {{endif}}
            <li>
                <a {{if $currentUrlPath === $record->url()->data['path']}}class="cDocs_active"{{endif}} href="{$record->url()}">
                    {{if $record->customFieldDisplayByKey('shortened_title', 'raw')}}{$record->customFieldDisplayByKey('shortened_title', 'raw')}{{else}}{$record->_title}{{endif}}
                </a>
            </li>
            {{endif}}
            {{endforeach}}
        </ul>
    </li>
    {{endforeach}}
</ul>
{{endif}}

That should be it.

Dokumentation.xml

Looks good so far, but what I can't see on the video is the page itself, especially this ...

Could contain: File, Text Could contain: File, Page, Text, Webpage, Electronics, Mobile Phone, Phone

And don't forget this ...

Could contain: Page, Text

  • Solution

That sounds very sad @Square Wheels :sad:

 

The link is just what I'd like for one project.  A simple page that has 3, maybe 10, items in the menu on the left, and a page of info on the right.  All static, nothing that needs to be interacted with.  It's to provide info only.  Thanks anyhow.

Feel free to PM me and I will build such a database directly on your site and completely for free.

We can even customize it a little bit if you like to :smile:

Recently Browsing 0

  • No registered users viewing this page.