Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleanup and consistency changes #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Miguel-F
Copy link

If you are interested in these changes, I am using your plugin with Mura 6.2 and found that the protocol and http_host are not needed when you call the getImageURL() Mura method. It returns the entire URL for you already. I don't know if this is different behavior from previous versions of Mura or not.

While I was modifying this file I also noticed some inconsistencies on when new lines #NL# were being added to the end of the <meta> tags. They were not being added in all cases.

I also noticed that it was calling the getValue() method in some cases but specific get{attribute_name} in others. I changed the getValue() calls to use the get{attribute_name} methods instead.

I changed the $.content() method calls for the summary and body content to use the $.setDynamicContent() method instead. That way any [Mura] tags embedded within the content will be processed. I don't know if you intentionally were not using this method for some reason?

Just FYI if you want these changes or not.

If you are interested in these changes, I am using your plugin with Mura 6.2 and found that the protocol and http_host are not needed when you call the getImageURL() Mura method. It returns the entire URL for you already.  I don't know if this is different behavior from previous versions of Mura or not.

While I was modifying this file I also noticed some inconsistencies on when new lines #NL# were being added to the end of the <meta> tags. They were not being added in all cases.

I also noticed that it was calling the getValue() method in some cases but specific get{attribute_name} in others. I changed the getValue() calls to use the get{attribute_name} methods instead.

I changed the $.content() method calls for the summary and body content to use the $.setDynamicContent() method instead. That way any [Mura] tags embedded in the content will be processed. Don't know if you intentionally were not using this method for some reason?

Just FYI if you want these changes or not.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant