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

Add block:Photos support to block:Photoset #4

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

michaelwills
Copy link

I copied block:Photo into block:Photoset to allow iteration over individual photos in the themes. This is an initial test but it seems to work so far. This allows for more flexibility than just using the photoset embed codes.

Copied block:Photo into block:Photoset to allow iteration over individual photos in the themes. This is an initial test but it seems to work so far.
@michaelwills
Copy link
Author

I'll have to look at this more. Only the initial image seems have data now.

[edit - more info]

I should add that I am testing this on URLs that show a single post only like:

http://tumblr.dev/#/theme/theme-name/url/blog.tumblr.com/post/post-#/post-slug

@michaelwills
Copy link
Author

Interesting. I took a guess and looked at how your HasTags is handled. Instead of

{tag} content {/tag}

it is

{tag} content {/tag}

and this seems to be working!

Pull request coming shortly. I also added the HighRes URL as well.

Previewing through tumblrthemr now shows iterations over photos.

Also added HighRest URL outside of block:HighRestURL. It works, but not sure if that's the best way to go about it.
Found that RebloggedFrom was not showing in posts. Added that to Photoset, Photo, and Video as those are my immediate need. Will be testing.
Photosets seem to now work with NoReblog (displaying content within NoReblog) and also RebloggedFrom.

The reason is I am using custom logic for local photosets and using default displays for reblogged photosets.
These are referenced here:

https://groups.google.com/forum/#!msg/tumblr-themes/v3SxNAW70cU/dHCZWn7yFPYJ

Specifically:

They are Undocumented.

{Name}  Gives the "Tumblr Name" of the user
{Host}  Gives the "Host name" for the blog  (ie, if the URL is http://foobar.tumblr.com,  this generates "foobar.tumblr.com")

Note that for Tumblrs with a Custom domain name, the {Host} variable will return that custom domain name. So if the Tumblr's URL is "http://www.my-awesome-tumblr.com",  {Host}  generates "www.my-awesome-tumblr.com"

The {Name} variable always returns the actual Tumblr Name of the blog, regardless of whether it has a custom domain.
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