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

MetaData not aligned properly #9

Closed
sankethpb opened this issue Jul 11, 2019 · 4 comments
Closed

MetaData not aligned properly #9

sankethpb opened this issue Jul 11, 2019 · 4 comments

Comments

@sankethpb
Copy link

The Metadata is not aligned properly in the printed PDF. Could you please this?

image

Thanks in advance

@spacecabbie
Copy link
Contributor

Is there any update on this ?
also is it posible to exclude the custom field Value ? Or meta magik.
Or rename them.
If someone can point out where its done in the code I can have a look to see if i can change it.

@creecros
Copy link
Owner

creecros commented Mar 5, 2020

I do not intend to do anything with this plugin, probably, ever again. But, all the layouts are in one folder, you can edit them. I am willing to add collaborators to this project to help maintain it, but I believe I have done my part, and do not have the time for this plugin any more.

https://github.com/creecros/Task2pdf/tree/master/Template/printlayout

The two main layouts are the ones titled printlayout*.*, one for normal use and the other for cjk support.

Remove the hook from the details.php template to remove meta magik from the layout, be advised, anything else attached to that hook will also disappear from the print layout. If you want to just modify it, you would need to add a layout, specfic for meta magik to override the normal one in the print layout creation stage. This gets a little more complicated for a beginner, but if you understand hooks, then it should make complete sense. In a nutshell, you would create a new hook, remove the current hook, and attach a new layout for metamagik with your modifications to the newly named hook. this will cause Task2PDF to use your metamagik layout and not the one that is part of metamagik when it creates the PDF.

@spacecabbie
Copy link
Contributor

spacecabbie commented Mar 8, 2020

I do not intend to do anything with this plugin, probably, ever again. But, all the layouts are in one folder, you can edit them. I am willing to add collaborators to this project to help maintain it, but I believe I have done my part, and do not have the time for this plugin any more.

https://github.com/creecros/Task2pdf/tree/master/Template/printlayout

The two main layouts are the ones titled printlayout*.*, one for normal use and the other for cjk support.

Remove the hook from the details.php template to remove meta magik from the layout, be advised, anything else attached to that hook will also disappear from the print layout. If you want to just modify it, you would need to add a layout, specfic for meta magik to override the normal one in the print layout creation stage. This gets a little more complicated for a beginner, but if you understand hooks, then it should make complete sense. In a nutshell, you would create a new hook, remove the current hook, and attach a new layout for metamagik with your modifications to the newly named hook. this will cause Task2PDF to use your metamagik layout and not the one that is part of metamagik when it creates the PDF.

Fair enough i'll give it a go then see what i can make although i am pretty n00b programmer so if you be willing to lay down some guidelines ?

I am indeed not familiar with hooks well i understand the principle.
I'll see if i can locate the variables I'll then create a new template file where i specify all printed options and that way its easier editable.

If any suggestions or tips do let me know.

ps. I belive i have almost fixed the current layout issue will send a commit asap need to remove my own custom stuff

creecros added a commit to creecros/MetaMagik that referenced this issue Feb 16, 2023
@creecros
Copy link
Owner

You will need to update both MetaMagik and Task2pdf for these to work.

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

No branches or pull requests

3 participants