Your sample is the code itself. Template file location and what to edit in that template file are provided above. There is only 1 usage of $insert in that template file and it's responsible for outputting the article. You'll notice the ->get uses against the article object in the $insert usage. Specifically the following.
Article Title: $article->get( 'title', null, GetterInterface::STRING )
Article Intro: $article->get( 'introtext', null, GetterInterface::HTML )
There is no specific usage for pulling out a single image for you to format it. It's not that simple. You'd need to parse for the image in the introtext, pull it out, then place it in the HTML differently or just hardcode whatever implementation you're needing as you can output whatever you want with $insert.
Your alternative is to just format your article how you want it to display in CB Activity and it'll output like that since it just directly outputs introtext.
Kyle (Krileon)
Community Builder Team Member
Before posting on forums:
Read FAQ thoroughly
+
Read our Documentation
+
Search the forums
CB links:
Documentation
-
Localization
-
CB Quickstart
-
CB Paid Subscriptions
-
Add-Ons
-
Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please
send me a private message
with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.