Help with asset listing, asset builder, comments & facebook links


(Debbie) #1

New to Matrix and limited/no developer experience can someone please help me with the commenting system I'm trying to create using an asset builder and asset listing. the questions I have are:

 

1) I've used the keyword %commit_button% but this only show have the text when I preview it. So I tried using a string from another custom form

(<input type="submit" id="form_email_18089_submit" name="form_email_18089_submit" value="Submit" class="submit" accesskey="s" />) 

that had been created and simply changed the asset id to that of my asset builder page - will that work?

 

2) Can I add text within the comments box like this example below:

f

 I've just used the keyword %details-F_comment% to get the box to appear at the moment.

 

3) When I enter details into these fields and press submit the details don't clear out of the fields. Is this a caching issue or have I got something wrong?

 

4) Is there a way that I can have a tick box on the asset builder page that links the comment to the users facebook page if they tick that box?

 

5) On the asset listing page I want others to be able to share a story if that they may have read so on my asset listing page I used 

 %asset_short_name% wrote: %asset_attribute_comment% 
<p><i>%asset_created_readable%,</i> <a href="http://www.facebook.com/share.php?u=%asset_url%" onclick="return fbs_click()" target="_blank"><i>Share this story on your Facebook page</i></a></p>
 
A link gets created to the facebook page when you log in but if you click on the link it takes me back to a page within my website that only shows me the asset short name but none of the detail underneath. How do I fix this?
 
The url of the page I'm working on is
 
http://www.beaccessible.org.nz/the-movement/be-moments/?
 
 

 

1200 characters left

(Nic Hubbard) #2

 

1) I've used the keyword %commit_button% but this only show have the text when I preview it. So I tried using a string from another custom form

(<input type="submit" id="form_email_18089_submit" name="form_email_18089_submit" value="Submit" class="submit" accesskey="s" />) 

that had been created and simply changed the asset id to that of my asset builder page - will that work?

1200 characters le

 

No. Bad idea. Make sure to use the keyword.

 

 

 

2) Can I add text within the comments box like this example below:

 

I've just used the keyword %details-F_comment% to get the box to appear at the moment.

1200 characters l

 

Not seeing an example. Are you talking about having placeholder text?

 

 

 

3) When I enter details into these fields and press submit the details don't clear out of the fields. Is this a caching issue or have I got something wrong?

 

How are you nesting your Asset builder? It is hard to debug why this is without looking deeper in the system. Contact me if you need some more help.

 

 

4) Is there a way that I can have a tick box on the asset builder page that links the comment to the users facebook page if they tick that box?

 

1200 characters l

 

What do you mean by links the comment to their Facebook page?

 

 

 

5) On the asset listing page I want others to be able to share a story if that they may have read so on my asset listing page I used 

 %asset_short_name% wrote: %asset_attribute_comment% 
<p><i>%asset_created_readable%,</i> <a href="http://www.facebook.com/share.php?u=%asset_url%" onclick="return fbs_click()" target="_blank"><i>Share this story on your Facebook page</i></a></p>
 
A link gets created to the facebook page when you log in but if you click on the link it takes me back to a page within my website that only shows me the asset short name but none of the detail underneath. How do I fix this?
1200 characters le

 

What are you meaning it is only showing you the short name and no detail?


(Debbie) #3

1) Okay will use the keyword for the submitting, but how do I stop it cutting off and not showing the complete word 'Save'

 

2) Yes I am meaning placeholder text.

 

3) I've nested the asset builder and listing in a paint layout which I created for this particular section.

 

4) I'm wanting to recreate what I've seen on this website - http://www.nzherald.co.nz/opinion/news/article.cfm?c_id=466&objectid=11200771# under the "Have your Say" section

 

5) When I click on the link in Facebook it takes me back to a blank page with the name that's been entered originally but there is no detail about the story they have added. 


(Nic Hubbard) #4

1) Okay will use the keyword for the submitting, but how do I stop it cutting off and not showing the complete word 'Save'

 

2) Yes I am meaning placeholder text.

 

3) I've nested the asset builder and listing in a paint layout which I created for this particular section.

 

4) I'm wanting to recreate what I've seen on this website - http://www.nzherald.co.nz/opinion/news/article.cfm?c_id=466&objectid=11200771# under the "Have your Say" section

 

5) When I click on the link in Facebook it takes me back to a blank page with the name that's been entered originally but there is no detail about the story they have added. 

 

1. This is a CSS issue. On line 1151 of your be-main.css file it is setting the width to 70%. That is why the button is so skinny.

 

2. I would print the keyword for the comment box, then look at the HTML for it. Then, remove the keyword and place the HTML there. You can then add a placeholder attribute. (This isn't an ideal solution, but maybe better than using javascript)

 

3. Hard to debug without more investigation.

 

4. Not exactly sure how they are doing this, but there isn't anything in Matrix like this. Most likely they are using the Facebook API to post the comment to Facebook.

 

5. You need to customize the Facebook share.php a bit more. Take a look at this page: http://ar.zu.my/how-to-really-customize-the-deprecated-facebook-sharer-dot-php/