RebelMouse Talk to Us
roar_specific_post_data

Purpose:

You can define different fields called "roar specific post data" which will be displayed in advanced tab in entry editor. This way you give your editors ability to save some extra data beside the article. Developers can use this data in code for simple output for example or as a condition for outputting something hardcoded in template.

[rebelmouse-proxy-image https://media.rbl.ms/image?u=%2Fmedia.forumbee.com%2Fi%2F42084473-c46d-44b1-8846-8cdd97c43211%2F547.png&ho=https%3A%2F%2Fs3-us-west-2.amazonaws.com&s=535&h=ecfceba7fcdab3d6648b57f3e398f0e1a332127fba1fbe755e272162ad440d04&size=980x&c=4093561224 crop_info="%7B%22image%22%3A%20%22https%3A//media.rbl.ms/image%3Fu%3D%252Fmedia.forumbee.com%252Fi%252F42084473-c46d-44b1-8846-8cdd97c43211%252F547.png%26ho%3Dhttps%253A%252F%252Fs3-us-west-2.amazonaws.com%26s%3D535%26h%3Decfceba7fcdab3d6648b57f3e398f0e1a332127fba1fbe755e272162ad440d04%26size%3D980x%26c%3D4093561224%22%7D" expand=1]


Type:

Optional.


Example:

        'roar_specific_post_data': {            'video_caption': {                'title': 'Video Caption'            },            'video_credit': {                'title': 'Video Credit'            },        },

Usage:

When enabled and filled in there will be extra roar_specific_post_data property in Bootstrap object. There will be as many properties as you have fields.

[rebelmouse-proxy-image https://media.rbl.ms/image?u=%2Fmedia.forumbee.com%2Fi%2F6f629346-179e-4b6b-8e32-811f524ddbea%2F547.png&ho=https%3A%2F%2Fs3-us-west-2.amazonaws.com&s=243&h=aa9bc116b14bc1a50fa890eff013a31129a602d467436b6bc0cef5812e18d558&size=980x&c=240992599 crop_info="%7B%22image%22%3A%20%22https%3A//media.rbl.ms/image%3Fu%3D%252Fmedia.forumbee.com%252Fi%252F6f629346-179e-4b6b-8e32-811f524ddbea%252F547.png%26ho%3Dhttps%253A%252F%252Fs3-us-west-2.amazonaws.com%26s%3D243%26h%3Daa9bc116b14bc1a50fa890eff013a31129a602d467436b6bc0cef5812e18d558%26size%3D980x%26c%3D240992599%22%7D" expand=1]

In mustache (used on postpage) would code look like this:

{{#roar_specific_data.video_caption}}    <div class="widget__video_caption">        {{roar_specific_data.video_caption}}</p>    </div>{{/roar_specific_data.video_caption}}

First we check if video caption exists and if does then we output it.


Important:

Roars by default doesn't have code to render this extra fields in advanced tab in dashboard. Make sure that you have this line of code:

{% if post_extra_fields %}settings.post_extra_fields= {{post_extra_fields|to_json|safe}};{%endif%};

in editor.html file:

engine/roar_name/templates/dashboard/editor.html
Build on a Better PlatformReady to See More?
Request a Proposal
People on a train station
Rebel Insights

RebelMouse Q1 2021 Platform Updates

Speed, performance, and Core Web Vitals enhancements

Click here to read our Q2 2021 platform performance updates!

At RebelMouse, we pour our souls into making sure that our platform is always the most modern, high-performance CMS on the market. In fact, we invested over $100,000 worth of hours into our platform in Q1 2021 alone. This has resulted in updates and performance enhancements that publishers would have to pay for on their own to make happen on any other platform, such as WordPress. We're proud to be at a level of scale where we can invest this way into our platform, and we will continue to invest at this rate every quarter moving forward just as we have in the past.

Here are the major updates that we've added to the platform in Q1.

Keep reading... Show less
Build on a Better PlatformReady to See More?
Request a Proposal
An Important Note on Site Quality From Google’s Search Expert
Rebel Insights

An Important Note on Site Quality From Google’s Search Expert

Do you ever wonder if a few typos can impact your site’s search performance? According to Google’s Search Advocate John Mueller, it takes more than just a few grammatical missteps for Google’s crawler to determine your site’s quality.

During a New Year’s Eve Office Hours hangout, Mueller said that if certain portions of a website are deemed low quality, it can negatively impact the site’s search ranking overall. A good example of this is a site that has different language versions within the same domain. If the site has a French-language version that is made up of quality content, but the English translation isn’t up to the same standard, the ranking of the French version of the site could be negatively impacted.

Keep reading... Show less
Build on a Better PlatformReady to See More?
Request a Proposal