sebastianr
-
Posts
20 -
Joined
-
Last visited
Content Type
Downloads
Release Notes
IPS4 Guides
IPS4 Developer Documentation
Invision Community Blog
Development Blog
Deprecation Tracker
Providers Directory
Forums
Events
Store
Gallery
Posts posted by sebastianr
-
-
8 minutes ago, Nathan Explosion said:
$record->truncated(false, 100);
With true as params, it works. Where can I find these methods in the documentation?
-
Hello,
I want to add an excerpt of the record in my custom feed (first 100 letters...). I can't find a variable to achieve this. Can anyone give me some guidance? My current approach:
{{if !empty( $records ) }} {{foreach $records as $record}} <div class="col-md-6"> <div class="blog_card"> <div class="author_info"> <div class="meta"> <span>{datetime="$record->mapped('date')"}</span> </div> </div> <h4 class="blog_title"> {$record->_title} </h4> <p class="blog_desc"> {$record->_description} <!-- ???? --> </p> <a href="{$record->url( "getPrefComment" )}" title='{lang="view_this_cmsrecord" sprintf="\IPS\Member::loggedIn()->language()->addToStack( 'content_db_lang_sl_' . $record::$customDatabaseId, FALSE ), $record->_title"}' class="read_more">Read more</a> </div> </div> {{endforeach}} {{endif}}
-
We are a multilingual community and do not really understand the "best practice" for multilingual content.
- Activate and provide language packages from the system: done, easy
- Create forum categories for different languages: done, easy
-
Create a multilingual home page? How?
- Where can I specify which language has a custom page and even specify that it is the index page for language X?
- How to adjust the sitemap.xml so that Google etc. indexes the community multilingual?
-
Hello,
is it possible to add the group id as an css class to a posting? I need to style up postings from some groups.
-
Where is the template file to remove the "Start a Club" Button? I'm not able to change the group permissions to "disallow", cause the users create the clubs via the REST API.
-
On 9/19/2020 at 6:46 PM, InfinityRazz said:
Yeah! It's definitely a lil weird cause it returns field_##, took me a couple weeks to get used to making RestRequests here 😛
CustomFields on a purchase/member request are similar as well :
Request.AddParameter("customField[#]", "StringValue"); 😉
Yeah, same thing. Took me also weeks until to ask for support here. If the REST API would accept a json body, it would be easier.
-
Perfect. I didn't know
Request.AddParameter("fields[24]", "This changes record title");
is how an array is passed via RESTSharp.
Thank you!
-
Anyone have an idea? The support does not want to help here, it would be above the standard... 🥴
-
Since the REST API does not accept a json body, what does the URL have to look like to transfer "fields"? Can someone please give an example?
Something like:
https://www.domain.com/api/cms/records/4?key=mykey&category=7&author=1&fields="field_8":"content here..."
Isn't working...
-
-
-
-
Where can I find the URL to the RSS feed I created in ACP?
-
I'm getting INVALID_RECIPIENT using the POST /core/messages API. Whats wrong with my request?
REQUEST DATA
{ "key": "****************", "from": "12", "to": "1,11", "title": "Sample title", "body": "Sample content..." }
RESPONSE
{ "errorCode": "1C374\/3", "errorMessage": "INVALID_RECIPIENT" }
Escape apostrophe in template files
in Classic self-hosted technical help
Posted
My code:
Result:
How to escape the apostrophe to get correct url('image.jpg')?