Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
  • Blog

Starting to get the hang of things...

Jimi Wikman

97 views

Even though I am not really that focused today since I am home with a cold, I still feel I am starting to get the hang of custom fields for IPS Pages and it's databases. It is not really that hard to reference the fields from the database, which makes it easy to create pretty much any layout I want. Now I just need to focus on which database to focus on first!

Slowly, but surely the databases are getting built and slowly I start to get the hang of the templates system. Adding fields to templates is pretty easy and since I can add CSS on the fly pretty easy as well I feel good about the future of this site. There are still a few things I need to figure out, like how to change language strings on certain databases and how to get the data I want between databases so I can reference things properly.

I will focus on the My Roles database first since September is the About Me month. Since I have started to work with the basicRelationship template, which control the way relation database fields are shown I am going to explore this in more detail. For now I managed to get some basic data through, like:

{{if $item::$customDatabaseId == 8}}
<ul>
{{foreach $items as $id => $item}}
  <li><span>{$item->_title}:</span> 
    {$item->customFieldDisplayByKey('rating', 'display')|raw}

  </li>
{{endforeach}}
</ul>
{{endif}}

This is very simple, but it allow me to build some specific databases such as reviews and skills for example. I might even be able to build in some more advanced data eventually, but for now this will be a good start I think.

I feel pretty excited, but that could also just be the fever talking...

  • Like 1


0 Comments


Recommended Comments

There are no comments to display.

Guest
Add a comment...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Who's Online   0 Members, 0 Anonymous, 10 Guests (See full list)

    There are no registered users currently online

×
×
  • Create New...