ContributionsMost RecentMost LikesSolutionsRe: Board visibility privileges in custom componentIf you make the call with rest instead of restadmin, it just won't retrieve boards hidden to that user. Security wise I'd definitely advise against using restadmin in almost every case. Better to catch failures in code than to let unintended users execute code or retrieve data. Excellent point about the "hidden" status being available via rest though! Re: API call to pull blog teaser and image Hey bcmacdonald there are calls to get the teaser and blog body. Api V1 in a custom component on the article page like this: <#assign message = restadmin("/messages/id/" + page.context.thread.topicMessage.uniqueId).message /> From there the teaser field is "message.teaser" But there's no "image" field. We've got a predefined format for the teaser that our team follows. Based on that we're parsing through the teaser to find the start and end of the specific image we want. A function reads in the "message.teaser" and marks the location of the "<img>" and "</>" tags. we then cut the string down to that and use it to pull the image out of the teaser. If you have an image in the post body you could do the same. But you'd need to make sure your code allows for other tags that could appear before the image. Tim Custom component repository I'm going to throw this out there. There is a huge gap in the creation of custom components. Between both versions of the API there is a lot you can do. But there's still a lot of work required to do things. You're always starting from scratch. Even when you know someone else's great idea. What I really want to see, right here in the Lithium community is a custom component repository with version control and forking. I want to be able to write a component that pulls in the specific data I need and have it easily accesible to others. I want other developers to jump in and edit the layout so it has the default header, footer and columns correct with CSS classes. Someone else to optimise a loop and speed it up. And then visible to everyone to one click add to their stage. And if it updates AFTER I've added it to my community, then an alert in Studio lets me choose to pull in the new version of the component. Some of what we build is closed and we'll keep it, but there's other times we could all just chip in. I think it's a pretty big addition to the product and would be happy to contribute. Any thoughts? Re: Permission denied when making a 'Reply' via the REST API. Good to hear you managed to get the post returned wsurguy. You won't be able to specify the author of the post unless the user making the post has the "switch to other users" permission enabled. And even then you can't switch to a user that has any permission higher than your own. Labels on the other hand apply to a topic only. Not an individual post, you wouldn't pass those in with a reply. You could need to use tags if there's metadata you want to attach to the post. Sounds like you've got the right permissions working now, but just need a few tweaks to what you're handing to the API :) Re: Permission denied when making a 'Reply' via the REST API. Apologies for the confusion wsurguy, I only include the # to indicate the number went there, it wasn't intended to be a part of the URL. You've figured that part out, we can move on :) You've got a valid ID, so I think the rest call is the incorrect one. Unless I'm wildly mistaken and I could well be... Switch out "reply" for "post" in your rest call. That might work better? http://community.lithium.com/t5/Community-API/bd-p/developers-rest-api?leaf-id=MessageDiscussion.messages.post#MessageDiscussion.messages.post Re: Permission denied when making a 'Reply' via the REST API. Hey wsurguy, the 303 error means the object wasn't found: http://community.lithium.com/t5/Community-API-v2/Application-Error-Codes/ta-p/113087 I'd say you're using the wrong id to post your reply to. If you throw your ID onto the end of the URL here does it load the thread correctly? Yourcommunity.com/t5/IgnoreThis/IgnoreThisToo/td-p/#YOURIDHERE If not, that's where the issue is :) Tim Re: "max-width" inside tables not working Firefox The CSS spec doesnt seem to like that possibility Quelyn. If the containing block's width depends on this element's width, then the resulting > layout is undefined in CSS 2.1. Firefox is the only browser behaving as intended by the spec. See discussion here: https://bugzilla.mozilla.org/show_bug.cgi?id=975632 I believe that max width only behaves as expected if all elements in the chain have a width. IE every parent object up to body needs to have a width defined for CSS to calculate the max-width correctly. Re: Change Page based on user This is extraordinary PerBonomi, thanks for sharing. I am very excited to build a home page just for my super users. Might even have to consider the notion of an "expert mode" people can opt in to. Widget on their profile/sidebar to add/remove the option (endpoint using restadmin to add or remove a specific role) Quick check in the page initilization script for the role Bingo, load up a custom quilt for homepages and board views. Re: Hiding the choice for "TKB Templates" Hi Quelyn , I don't think there's a way to get the code of an original component. Normally you'll need to look at the functionality and create freemarker/api calls to recerate that. Which menu component are you overriding? If it's within a forum post you an just write your code to get the message id of the parent post and link to the TKB form from there. If it's within the TKB drafts section for nominated posts it'll be a little more work to replace the individual rows generated from topics. The former is much easier to do, it'll just come down to where you insert the component. I've never inserted one into the menu list dropdown sorry. Only added a new button for things :) Tim Re: Can we get context of ForumTopicPage on custom page. You'll get the right context vishwajeet_hol if it's a page to replace the page. IE: ForumTopicPage.YourCustomPage and then selecting it from community admin. If not, I'm with VarunGrazitti , you might need to clarify a little more on what you're doing :)